nip06 0.0.3 nip06: ^0.0.3 copied to clipboard
This package contains the basic key derivation from mnemonic seed phrase protocol flow for Nostr as described in the NIP-06.
import 'package:nip06/nip06.dart';
void main() {
final keyPair = KeyPair.generate();
print('Private key: ${keyPair.privateKey}');
final keyPairFromMnemonic = KeyPair.fromMnemonic(
'abandon '
'abandon '
'abandon '
'abandon '
'abandon '
'abandon '
'abandon '
'abandon '
'abandon '
'abandon '
'abandon '
'about',
);
print('Private key: ${keyPairFromMnemonic.privateKey}');
}