-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #228 from ardriveapp/PE-4879_fix_gen_keypair_from_…
…seed_phrase fix(seed phrase): use human crypto key with a set bip 39 version for generating keypair from seed phrase
- Loading branch information
Showing
34 changed files
with
77 additions
and
514 deletions.
There are no files selected for viewing
Binary file removed
BIN
-4.13 KB
.yarn/cache/@protobufjs-aspromise-npm-1.1.2-71d00b938f-011fe7ef08.zip
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-5.17 KB
.yarn/cache/@protobufjs-codegen-npm-2.0.4-36e188bbe6-59240c850b.zip
Binary file not shown.
Binary file removed
BIN
-4.51 KB
.yarn/cache/@protobufjs-eventemitter-npm-1.1.0-029cc7d431-0369163a3d.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-4.75 KB
.yarn/cache/@protobufjs-inquire-npm-1.1.0-3c7759e9ce-ca06f02eaf.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+3.16 KB
.yarn/cache/@types-human-crypto-keys-npm-0.1.2-13d56b7661-967ca0d91c.zip
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-10.2 KB
.yarn/cache/arweave-mnemonic-keys-npm-0.0.9-d1e53ee8b7-9fda19e677.zip
Binary file not shown.
Binary file renamed
BIN
+80.4 KB
...bip39-npm-3.0.4-7c69c9182f-79ce1600a0.zip → ...bip39-npm-3.0.2-32369862f4-71798582b4.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { expect } from 'chai'; | ||
import { fakeArweave } from '../tests/stubs'; | ||
import { SeedPhrase } from './exports'; | ||
import { WalletDAO } from './wallet_dao'; | ||
|
||
// This test runs too slow to be included in the CI pipeline. But it provides a snapshot of the | ||
// seed phrase to wallet functionality and should be run locally before a release | ||
describe.skip('Wallet DAO', function () { | ||
this.timeout(90_000); | ||
const walletDAO = new WalletDAO(fakeArweave); | ||
it('generateWallet from seedphrase function', async () => { | ||
const seedPhrase = new SeedPhrase( | ||
'slender during cost problem tortoise extra deal walnut great oblige planet kid' | ||
); | ||
const wallet = await walletDAO.generateJWKWallet(seedPhrase); | ||
const address = await wallet.getAddress(); | ||
expect(address.toString()).to.equal('FOKCJ1sz9XfFGy8KwVQczDPdavCEu6c5GkzTNfEbRI8'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.