Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgraded BIP39 support to the multi lingual version #11

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Otherwise, pull requests are appreciated.

```dart
import 'package:bitcoin_flutter/bitcoin_flutter.dart';
import 'package:bip39/bip39.dart' as bip39;
import 'package:bip39_multi/bip39_multi.dart' as bip39;

main() {
var seed = bip39.mnemonicToSeed("praise you muffin lion enable neck grocery crumble super myself license ghost");
Expand Down
2 changes: 1 addition & 1 deletion example/bitcoin_flutter_example.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:bitcoin_flutter/bitcoin_flutter.dart';
import 'package:bip39/bip39.dart' as bip39;
import 'package:bip39_multi/bip39_multi.dart' as bip39;
main() {
var seed = bip39.mnemonicToSeed(
"praise you muffin lion enable neck grocery crumble super myself license ghost");
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ environment:
sdk: '>=2.0.0-dev.58.0 <3.0.0'

dependencies:
bip39: ^1.0.3
bip39_multi: ^1.0.4
bip32: ^1.0.5
pointycastle: ^1.0.0-rc2
hex: ^0.1.2
Expand Down
2 changes: 1 addition & 1 deletion test/bitcoin_test.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:bitcoin_flutter/bitcoin_flutter.dart';
import 'package:test/test.dart';
import 'package:bip39/bip39.dart' as bip39;
import 'package:bip39_multi/bip39_multi.dart' as bip39;

void main() {
group('bitcoin-dart (HDWallet)', () {
Expand Down
4 changes: 2 additions & 2 deletions test/integration/bip32_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:bitcoin_flutter/src/models/networks.dart';
import 'package:bitcoin_flutter/src/payments/p2pkh.dart';
import 'package:test/test.dart';
import 'package:hex/hex.dart';
import 'package:bip39/bip39.dart' as bip39;
import 'package:bip39_multi/bip39_multi.dart' as bip39;
import 'package:bip32/bip32.dart' as bip32;
void main() {
group('bitcoin-dart (BIP32)', () {
Expand Down Expand Up @@ -69,4 +69,4 @@ void main() {
}
String getAddress (node, [network]) {
return P2PKH(data: new P2PKHData(pubkey: node.publicKey), network: network).data.address;
}
}