Class: Signer ​
Defined in: signer.ts:11
Class representing a signer for cryptographic operations. Remains for backwards compatibility. Plan to migrate to Kms. Signer
Constructors ​
Constructor ​
new Signer(
params):Signer
Defined in: signer.ts:30
Creates an instance of Signer.
Parameters ​
params ​
The parameters for the signer.
keyPair ​
The key pair used for signing.
network ​
keyof AvailableNetworks
The network associated with the signer.
Returns ​
Signer
Properties ​
keyPair ​
keyPair:
SchnorrKeyPair
Defined in: signer.ts:16
The key pair used for signing.
network ​
network: keyof
AvailableNetworks
Defined in: signer.ts:22
The network associated with the signer.
Accessors ​
publicKey ​
Get Signature ​
get publicKey():
Bytes
Defined in: signer.ts:39
Gets the public key bytes.
Returns ​
The public key bytes.
Methods ​
sign() ​
sign(
hash):Bytes
Defined in: signer.ts:57
Signs the given hash using Schnorr signature.
Parameters ​
hash ​
The hash to sign.
Returns ​
The Schnorr signature of the hash.
signEcdsa() ​
signEcdsa(
hash):Bytes
Defined in: signer.ts:48
Signs the given hash using ECDSA.
Parameters ​
hash ​
The hash to sign.
Returns ​
The signature of the hash.