Skip to content

Commit

Permalink
test: cover portuguese bip39
Browse files Browse the repository at this point in the history
  • Loading branch information
pinheadmz committed Aug 29, 2022
1 parent ff4bab1 commit e7f189c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
30 changes: 30 additions & 0 deletions test/data/mnemonic-portuguese.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[
[
"00000000000000000000000000000000",
"abacate abacate abacate abacate abacate abacate abacate abacate abacate abacate abacate abater",
"https://iancoleman.io/bip39/#portuguese",
"310b9658971242b9192717c83c0f2656913d7d8028d7ec556e92c3c71168cc60a457b88cd1ee998871c3afb4dd6339375e5526e16eabb11142ad7e89033fff38",
"xprv9s21ZrQH143K2QUuKjgvQqqeUvTM269XQLp9bq1PkUoJZjfzPPJRZtBTUY7BtqLGjSupBjcWcygkdrUc7xcBY12xfaBMGixnw83HRK11HiP"
],
[
"7b299ca1eae745e03160702d45fab2231c930c9af1f55fd1d9a953a383a13104",
"heresia dialeto borracha rugido ginasta travar pupilo alusivo caju cansado ofensiva debulhar rapadura ironizar forjar convite evasivo leigo flechada nervoso cidade resolver prometer jorrar",
"https://iancoleman.io/bip39/#portuguese",
"64f70e96ad2a77550e7108e493a077b8d15667b7800fd9c9384b073dd0dea61fdee8bf0e89afd9f9c273ce04c73292e37e724d78c12050dec452526ac44b505a",
"xprv9s21ZrQH143K2nNrkwhyctoQ9kwvnzCGVakLm8LhzNHuE58tYsaHg7b6EV7NM2kDPutPu6JLxVMjGrVTr3YwUFDN2DtrNnFezwNA9V2H3kc"
],
[
"2cd87f318e429cc2dc5b13682a3cb0c1",
"caiaque projeto recuar axila brochura exemplo garrafa exposto ficar duplo cachorro inibido",
"https://iancoleman.io/bip39/#portuguese",
"32b1452637cac7201550d0b6012dba0f81fc03bb5b25902cafc80e0fbc87c6dcd10dc7524d14b21964f3a1ee2fd028994685a149b48859c5fd12f66ba6fb8208",
"xprv9s21ZrQH143K3LF8znZ3QBkP4mckt88f67pVbJx9SRiBB9QownrK1M7Td3Z5kbPrps2nzMDjyNX97fujPr7SQKMEF4KQd5iyBDNjPbfrQRY"
],
[
"2cd87f318e429cc2dc5b13682a3cb0c1",
"caiaque projeto recuar axila brochura exemplo garrafa exposto ficar duplo cachorro inibido",
"",
"273fdf21a3bd9ee074e44eb2af868e1594290c12017027b8da434b83c5842b783900e79467c41664e152c67c71a1dd9be4c17de90a2d9ebe3d78095bbafbb24e",
"xprv9s21ZrQH143K4QiuYZPvfS2vdcyL1FPE2tAYJfbAFR83ZLoYbMHNNRGcnbCuctbufgU4AmbujNMvWpPT49LBB7y8VY49bVCpyn7bp8ZQKhb"
]
]
3 changes: 2 additions & 1 deletion test/mnemonic-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ const HDPrivateKey = require('../lib/hd/private');

const tests = {
english: require('./data/mnemonic-english.json'),
japanese: require('./data/mnemonic-japanese.json')
japanese: require('./data/mnemonic-japanese.json'),
portuguese: require('./data/mnemonic-portuguese.json')
};

describe('Mnemonic', function() {
Expand Down

0 comments on commit e7f189c

Please sign in to comment.