Skip to content

v0.1.0-dev - Phase 1 Complete

Pre-release
Pre-release

Choose a tag to compare

@nemorixgroup nemorixgroup released this 24 Jul 17:22
· 9 commits to main since this release
1456071

Phase 1 complete: the first native Flutter/Dart SDK for Avalanche
can now derive wallets and addresses for all three chains.

What's New

  • Seed - BIP-39 seed derivation (PBKDF2-HMAC-SHA512)
  • HDWallet - BIP-32/BIP-44 HD key derivation
    • C-Chain: m/44'/60'/0'/0/n
    • X/P-Chain: m/44'/9000'/0'/0/n
  • EvmAddress - C-Chain EVM address (keccak256 + EIP-55)
  • XPAddress - X-Chain and P-Chain Bech32 addresses

Full Wallet Cycle

final mnemonic = Mnemonic.generate(wordlist: WordlistEs.instance);
final wallet   = HDWallet.fromMnemonic(mnemonic);
final cAddr    = EvmAddress.fromPublicKey(
                   wallet.derivePublicKeyForCChain());
final xpAddr   = XPAddress.fromPublicKey(
                   wallet.derivePublicKeyForXPChain());

Tests

254/254 passing · 46 new tests this release

Next

M2: C-Chain JSON-RPC client (EIP-1559 AVAX transfers, ERC-20)