AdaPrivateKey class

Represents an Ada private key.

Constructors

AdaPrivateKey.fromBytes(List<int> privateKeyBytes)
Constructs an AdaPrivateKey from the given privateKeyBytes.
factory
AdaPrivateKey.fromHex(String privateKeyHex)
Constructs an AdaPrivateKey from the hexadecimal representation privateKeyHex.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createBootstrapWitness({required List<int> digest, required ADAByronAddress address, required List<int> chainCode}) BootstrapWitness
createSignatureWitness(List<int> digest) Vkeywitness
Creates a Vkeywitness by signing the provided digest using the private key associated with this AdaPublicKey. The digest represents the message to be signed. Returns a Vkeywitness object containing the verification key and signature.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
publicKey() AdaPublicKey
Obtains the public key derived from this private key.
sign(List<int> digest) List<int>
Signs the given digest with this private key.
toBytes() List<int>
Converts the private key to its byte representation.
toHex() String
Converts the private key to its hexadecimal representation.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited