-
Notifications
You must be signed in to change notification settings - Fork 392
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2bfc8fa
commit 2b1eb72
Showing
3 changed files
with
1,373 additions
and
4 deletions.
There are no files selected for viewing
49 changes: 49 additions & 0 deletions
49
packages/core/src/secret/__tests__/__snapshots__/secret.test.ts.snap.web
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,49 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Secret Module Tests CKDPub should match snapshot for public key derivation 1`] = ` | ||
{ | ||
"chainCode": "ebe55dbe2a6484cbe2eafe4de05680329ca866715195dceefbc932cc7e4e7d2a", | ||
"key": "0312d9f38f8b50099f57432befc4bb4ea304f3ce8af076558397d750fc0625d56d", | ||
} | ||
`; | ||
|
||
exports[`Secret Module Tests N should match snapshot 1`] = ` | ||
{ | ||
"chainCode": "0123456789abcdef0123456789abcdef", | ||
"key": "0358e7e5314d5ac609228be043bd0af8fa463fd38b2398a71867c0d9f2e186a339", | ||
} | ||
`; | ||
|
||
exports[`Secret Module Tests compressPublicKey should match snapshot for compressed public key 1`] = `"03a0434d9e47f3c86235477c7b1ae6ae5d3442d49b1943c2b752a68e2a47e247c7"`; | ||
|
||
exports[`Secret Module Tests decryptImportedCredential should match snapshot for decrypted credential 1`] = ` | ||
{ | ||
"privateKey": "0123456789abcdef", | ||
} | ||
`; | ||
|
||
exports[`Secret Module Tests decryptRevealableSeed should match snapshot for decrypted seed 1`] = ` | ||
{ | ||
"entropyWithLangPrefixed": "00112233445566778899aabbccddeeff", | ||
"seed": "00112233445566778899aabbccddeeff00112233445566778899aabbccddeeff", | ||
} | ||
`; | ||
|
||
exports[`Secret Module Tests decryptVerifyString should match snapshot for decrypted string 1`] = `"OneKey"`; | ||
|
||
exports[`Secret Module Tests encryptImportedCredential should match snapshot 1`] = `"|PK|94b51c8f77aa44bdf1a6071872cd89aae44fba848cf8a50c28280a9b79a56b24d3ebac3b568ef4e5369441a40eee4a246339119b757a9388f2d5cf0f71868a94659122fa0911b8078ee92275efb0956b63f2e954c77dab9413e439124c91183e"`; | ||
|
||
exports[`Secret Module Tests encryptRevealableSeed should match snapshot 1`] = `"|RP|94b51c8f77aa44bdf1a6071872cd89aae44fba848cf8a50c28280a9b79a56b24d3ebac3b568ef4e5369441a40eee4a24efed4e80676c0b6431053a43ce9e9190c827886c3faff68acbb63cda6e554395eeef26421bf0c40bec7c5555c402a277f9756c4bbefc940e0fee40d93c06040aaf75820eb42c40c838350b80e2b415eec8a9ae39ed7a7ac17a610f647f8afd676f7421fa403dc0dfe1978ff45ba6aa54"`; | ||
|
||
exports[`Secret Module Tests encryptVerifyString should match snapshot 1`] = `"|VS|94b51c8f77aa44bdf1a6071872cd89aae44fba848cf8a50c28280a9b79a56b24d3ebac3b568ef4e5369441a40eee4a244caaaee548b7845b6fe0896c5453d993"`; | ||
|
||
exports[`Secret Module Tests fixV4VerifyStringToV5 should match snapshot 1`] = `"|VS|test123"`; | ||
|
||
exports[`Secret Module Tests generateMasterKeyFromSeed should match snapshot 1`] = ` | ||
{ | ||
"chainCode": "15aa79fafb75cffcfda898a6b92f6e13d3693ddf269a0cf482cbe10c744f712c", | ||
"key": "94b51c8f77aa44bdf1a6071872cd89aae44fba848cf8a50c28280a9b79a56b24d3ebac3b568ef4e5369441a40eee4a2465a263f7abc8dd3c3722cae010557e2ab290ffc250591032ae9578819c4305b4f66dd012a39a69d2397693a6acd65c4a", | ||
} | ||
`; | ||
|
||
exports[`Secret Module Tests mnemonicFromEntropyAsync should match snapshot 1`] = `"zoo zoo zoo zoo zoo zoo zoo zoo zoo zoo zoo zoo zoo zoo zoo zoo zoo zoo zoo zoo zoo zoo zoo vote"`; |
Oops, something went wrong.