Bip32Ed25519XPrivateKey class

Represents an extended BIP-32 private key based on the Ed25519 curve.

It is recommended to call drop as soon as the key is not needed anymore.

Constructors

Bip32Ed25519XPrivateKey(Bip32Ed25519XPrivateKey _bytes)
The default constructor for Bip32Ed25519XPrivateKey.
const
Bip32Ed25519XPrivateKey.fromBytes(List<int> bytes)
Constructs Bip32Ed25519XPrivateKey from a byte list.

Properties

bytes List<int>
Returns the bytes of the private key.
no setter
hashCode int
The hash code for this object.
no setterinherited
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

derivePrivateKey({required String path}) Future<Bip32Ed25519XPrivateKey>
Derives and returns a child Bip32Ed25519XPrivateKey using the specified BIP-32 derivation path.
derivePublicKey() Future<Bip32Ed25519XPublicKey>
Derives and returns the associated Bip32Ed25519XPublicKey for this private key.
drop() → void
Clears the sensitive data associated with this private key.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sign(List<int> message) Future<Bip32Ed25519XSignature>
Signs the specified message and returns a Bip32Ed25519XSignature.
toCbor() → CborValue
Serializes the type as cbor.
toHex() String
Returns a hex representation of the Bip32Ed25519XPrivateKey.
toString() String
A string representation of this object.
inherited
verify(List<int> message, {required Bip32Ed25519XSignature signature}) Future<bool>
Verifies that the signature is valid for the given message using the public key derived from this private key.

Operators

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