nip06 0.0.5+1 nip06: ^0.0.5+1 copied to clipboard
This package contains the basic key derivation from mnemonic seed phrase protocol flow for Nostr as described in the NIP-06.
Features #
This package contains the basic key derivation from mnemonic seed phrases for Nostr as described in the NIP-06.
Usage #
import 'package:nip06/nip06.dart';
final keyPairFromMnemonic = KeyPair.fromMnemonic(
'abandon '
'abandon '
'abandon '
'abandon '
'abandon '
'abandon '
'abandon '
'abandon '
'abandon '
'abandon '
'abandon '
'about',
);
print('Private key: ${keyPairFromMnemonic.privateKey}');
copied to clipboard
Additional information #
This package is part of the Dartstr monorepo, which contains a set of modular and compatible Dart packages of different Nostr NIPS and utilities. Import just the packages of NIPS you need and keep your project lightweight. See the Dartstr monorepo for all available packages.