Abstract Class: Signer
TODO: Document
Extended by
Constructors
Constructor
new Signer(): Signer;
Returns
Signer
Methods
signingDigest()
static signingDigest(bytes, intent): Uint8Array;
Sign messages with a specific intent. By combining the message bytes with the intent before hashing. Returns the digest.
Parameters
| Parameter | Type |
|---|---|
bytes | Uint8Array |
intent | IntentScope |
Returns
Uint8Array
sign()
abstract sign(bytes): Promise<Uint8Array>;
Parameters
| Parameter | Type |
|---|---|
bytes | Uint8Array |
Returns
Promise<Uint8Array>
signWithIntent()
signWithIntent(bytes, intent): Promise<SignatureWithBytes>;
Sign messages with a specific intent. By combining the message bytes with the intent before hashing and signing, it ensures that a signed message is tied to a specific purpose and domain separator is provided
Parameters
| Parameter | Type |
|---|---|
bytes | Uint8Array |
intent | IntentScope |
Returns
Promise<SignatureWithBytes>
signTransaction()
signTransaction(bytes): Promise<SignatureWithBytes>;
Signs provided transaction by calling signWithIntent() with a TransactionData provided as intent scope
Parameters
| Parameter | Type |
|---|---|
bytes | Uint8Array |
Returns
Promise<SignatureWithBytes>
signPersonalMessage()
signPersonalMessage(bytes): Promise<{
bytes: string;
signature: string;
}>;
Signs provided personal message by calling signWithIntent() with a PersonalMessage provided as intent scope
Parameters
| Parameter | Type |
|---|---|
bytes | Uint8Array |
Returns
Promise<{
bytes: string;
signature: string;
}>
toIotaAddress()
toIotaAddress(): string;
Returns
string
getKeyScheme()
abstract getKeyScheme(): SignatureScheme;
Get the key scheme of the keypair: Secp256k1 or ED25519
Returns
getPublicKey()
abstract getPublicKey(): PublicKey;
The public key for this keypair