interface Signer { publicKey(): Promise<string>; publicKeyHash(): Promise<string>; secretKey(): Promise<undefined | string>; sign(op: string,
magicByte?: Uint8Array): Promise<{ bytes: string; prefixSig: string; sbytes: string; sig: string; }>; } Methods
publicKey
- publicKey(): Promise<string>
Returns Promise<string>
publicKeyHash
- publicKeyHash(): Promise<string>
Returns Promise<string>
secretKey
- secretKey(): Promise<undefined | string>
Returns Promise<undefined | string>
sign
- sign(op, magicByte?): Promise<{
bytes: string;
prefixSig: string;
sbytes: string;
sig: string;
}> Parameters
- op: string
Optional
magicByte: Uint8Array
Returns Promise<{
bytes: string;
prefixSig: string;
sbytes: string;
sig: string;
}>
Description
Signer interface which is used across taquito in order to sign and inject operation