nip06 0.0.2 copy "nip06: ^0.0.2" to clipboard
nip06: ^0.0.2 copied to clipboard

This package contains the basic key derivation from mnemonic seed phrase protocol flow for Nostr as described in the NIP-06.

example/nip06_example.dart

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}');
}
1
likes
160
pub points
31%
popularity

Publisher

verified publisherkumuly.dev

This package contains the basic key derivation from mnemonic seed phrase protocol flow for Nostr as described in the NIP-06.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

bip32, bip39, convert, nip01

More

Packages that depend on nip06