Ed25519HdWallet class

Pure Dart implementation of SLIP-0010 Ed25519 HD Wallet.

SLIP-0010 defines hierarchical deterministic key derivation for Ed25519. Unlike BIP-32, Ed25519 derivation:

  • Only supports hardened derivation (all indices must be >= 2^31)
  • Does not support public key derivation
  • Uses the hash directly as private key (no addition with parent)

Supported derivation paths:

  • Solana: m/44'/501'/0'/0'
  • TON: m/44'/607'/0'

Reference: https://github.com/satoshilabs/slips/blob/master/slip-0010.md

Constructors

Ed25519HdWallet.fromMnemonic(List<String> mnemonic, {String passphrase = ''})
Creates an Ed25519 HD wallet from a BIP-39 mnemonic phrase.
factory
Ed25519HdWallet.fromSeed(Uint8List seed)
Creates an Ed25519 HD wallet from a seed (typically from BIP-39 mnemonic).
factory

Properties

chainCode Uint8List
The 32-byte chain code for derivation.
final
depth int
The depth in the derivation tree (0 for master).
final
hashCode int
The hash code for this object.
no setterinherited
index int
The child index (including hardened bit if applicable).
final
path String
The derivation path string (e.g., "m/44'/501'/0'/0'").
final
privateKey Uint8List
The 32-byte Ed25519 private key.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

derive(String derivationPath) Ed25519HdWallet
Derives a child wallet using the specified derivation path.
deriveChild(int index) Ed25519HdWallet
Derives a direct child wallet with the specified index.
getPrivateKey() Uint8List
Gets the private key as bytes.
getPublicKey() Uint8List
Gets the Ed25519 public key (32 bytes).
getSolanaAddress() String
Gets the Solana address (Base58 encoded public key).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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