Skip to content
pubscout

ed25519_hd_key

2.3.0, released 2 years ago by alepop.dev

BIP-0032 like hierarchical deterministic key derivation for the ed25519 curve

WASM-ready
$ flutter pub add ed25519_hd_key
Source repository

What it does

Derives cryptographic master keys, key paths, and public keys from seed bytes using the ed25519 curve and SLIP-0010 specification. It provides utilities to handle hierarchical deterministic (HD) wallet structures in Dart.

AI-written summary of version 2.3.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • Building a Web3 application that requires ed25519 hierarchical deterministic key derivation
  • Working with SLIP-0010 or BIP-0032 inspired cryptographic key generation in Dart or Flutter

Skip it when

  • You do not require ed25519 curve derivation or cryptocurrency wallet features

Strengths

  • Supports multi-platform including web, mobile, and desktop
  • Implements standard SLIP-0010 key derivation procedures

Weaknesses

  • Limited documentation outside of basic usage examples
  • Narrow niche targeted specifically at ed25519 key derivation

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
2
import 'package:ed25519_hd_key/ed25519_hd_key.dart';
import 'package:convert/convert.dart';

void main() async {
  String hexSeed = 'fffcf9f6f3f0edeae7e4e1dedbd8d5d2cfccc9c6c3c0bdbab7b4b1aeaba8a5a29f9c999693908d8a8784817e7b7875726f6c696663605d5a5754514e4b484542';
  List<int> seedBytes = hex.decode(hexSeed);
  KeyData master = await ED25519_HD_KEY.getMasterKeyFromSeed(seedBytes);
  KeyData data = await ED25519_HD_KEY.derivePath("m/0'/2147483647'", seedBytes);
  var pb = await ED25519_HD_KEY.getPublicKey(data.key);
}

Works with

Packages commonly used together with ed25519_hd_key: ones it builds on, ones built on it, and its own family.