Features

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

Getting started

Installation

In your pubspec.yaml file add:

dependencies:
  nip06: ^0.0.2

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}');

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.

Libraries

nip06
Support for doing something awesome.