Interface: Secp256r1PrivateKeyLike
Methods
publicKey()
publicKey(): Secp256r1PublicKeyLike;
Get the public key corresponding to this private key.
Returns
scheme()
scheme(): SignatureScheme;
Returns
signPersonalMessage()
signPersonalMessage(message): UserSignatureLike;
Sign a personal message and return a UserSignature.
Parameters
message
Returns
signTransaction()
signTransaction(transaction): UserSignatureLike;
Sign a transaction and return a UserSignature.
Parameters
transaction
Returns
toBech32()
toBech32(): string;
Encode this private key as flag || privkey in Bech32 starting with
"iotaprivkey" to a string.
Returns
string
toBytes()
toBytes(): ArrayBuffer;
Serialize this private key to bytes.
Returns
ArrayBuffer
toDer()
toDer(): ArrayBuffer;
Serialize this private key as DER-encoded PKCS#8
Returns
ArrayBuffer
toPem()
toPem(): string;
Serialize this private key as PEM-encoded PKCS#8
Returns
string
trySign()
trySign(message): Secp256r1SignatureLike;
Sign a message and return a Secp256r1Signature.
Parameters
message
ArrayBuffer
Returns
trySignSimple()
trySignSimple(message): SimpleSignatureLike;
Sign a message and return a SimpleSignature.
Parameters
message
ArrayBuffer
Returns
trySignUser()
trySignUser(message): UserSignatureLike;
Sign a message and return a UserSignature.
Parameters
message
ArrayBuffer
Returns
verifyingKey()
verifyingKey(): Secp256r1VerifyingKeyLike;