wallet_hd_derivation_kit 1.0.0
wallet_hd_derivation_kit: ^1.0.0 copied to clipboard
Offline multi-chain BIP32, SLIP10, extended-key, and address derivation for Dart and Flutter.
import 'dart:io';
import 'package:wallet_hd_derivation_kit/wallet_hd_derivation_kit.dart';
void main() {
final mnemonic = Platform.environment['WALLET_MNEMONIC'];
if (mnemonic == null) {
stderr.writeln('Set WALLET_MNEMONIC; never hard-code a real wallet secret.');
exitCode = 2;
return;
}
print(deriveAddress(source: {'mnemonic': mnemonic}, chain: 'bitcoin'));
}