Returns the sha256 hash of the input data.
The data to hash.
The sha256 hash of the input data.
Gets the public key of a key pair.
The URI of the key to get the public key for.
The public key of the key pair.
Imports a key pair into the key store.
The key pair to import.
The options for importing the key pair.
Optional
active?: booleanOptional
importKey?: booleanThe URI of the imported key pair.
Signs a message with a key pair.
The data to sign.
Optional
keyUri: stringThe URI of the key to sign the data with.
The signature of the input data.
Verifies if a signature was produced by a key pair.
The signature to verify.
The data that was signed.
Optional
keyUri: stringThe URI of the key to use for verification.
A promise that resolves if the signature is valid, and rejects otherwise.
The interface for the Btc1KeyManager class. KeyManager