Skip to content

Commit

Permalink
fix: test case
Browse files Browse the repository at this point in the history
  • Loading branch information
sidmorizon committed Dec 25, 2024
1 parent 21f9ad9 commit e42042b
Show file tree
Hide file tree
Showing 3 changed files with 378 additions and 259 deletions.
Original file line number Diff line number Diff line change
@@ -1,46 +1,14 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Secret Module Tests compressPublicKey should match snapshot for compressed public key 1`] = `
exports[`Secret Module Tests N should match snapshot 1`] = `
{
"data": [
3,
160,
67,
77,
158,
71,
243,
200,
98,
53,
71,
124,
123,
26,
230,
174,
93,
52,
66,
212,
155,
25,
67,
194,
183,
82,
166,
142,
42,
71,
226,
71,
199,
],
"type": "Buffer",
"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",
Expand All @@ -56,10 +24,18 @@ exports[`Secret Module Tests decryptRevealableSeed should match snapshot for dec

exports[`Secret Module Tests decryptVerifyString should match snapshot for decrypted string 1`] = `"OneKey"`;

exports[`Secret Module Tests encryptImportedCredential should match snapshot 1`] = `"|PK|11eeddac15891e0428d781b46e042ee6734963f1d356ba9f56205c85453ec9bcff8f45c5ede8ec6c26281bfd5126fbc9b00a2f4975b44cd930db97d1ec0d19b70b999a973e49a9086ee4a3120cc63f738fb3801c60310ab6ba11adde79d7a072"`;
exports[`Secret Module Tests encryptImportedCredential should match snapshot 1`] = `"|PK|2bcff62d3b0809b3034355eed64122ee8567c61673370aa7ea49aee7614e3f8e311d54a38b116113fc77b937147197d17993fade34d0aa754b297c068f29c0934fa193b1c42615b37c8bf0560480f484f080740819ccc1a35ecfc9c79c96ed89"`;

exports[`Secret Module Tests encryptRevealableSeed should match snapshot 1`] = `"|RP|a3ab854fc7fa4daa3189e26884b255f4e1a20461da638dd86c1285fedd6d85d544542a0f57cfee47ae12e62de66c58eeb06ab992eb7a23c89915d43d5a902a42a140132a8bc20a703d4c4d30260acf2e8dff8adb54ac187253f686c696581b57213be0c6b48927aad94280c064fab05f9c904b7e61cccc840cec911835e5ecd5233a28a15b5357b749cc08324990e4a75d8418b0f124691f5be2439900b68db2"`;
exports[`Secret Module Tests encryptRevealableSeed should match snapshot 1`] = `"|RP|94b51c8f77aa44bdf1a6071872cd89aae44fba848cf8a50c28280a9b79a56b2496eae1a0bccd024418e78c02f16f7af1d4cf7b254281c1eb8c4cf45958946863f54777539599fa33706f15df60485f3f38a0e48a86111406e21ac37b4f86d381f1f638122fa1b93a58027dc2fc4e5ca04e321466234280a6fa4b3618f494b72028cf1abba04568f7b3429c53379c5f65c3b7d7b19e60eeebebb0a2d238045a3a"`;

exports[`Secret Module Tests encryptVerifyString should match snapshot 1`] = `"|VS|920ce8812f68001ef4c8a32aad63707fc92bb094d4a608d1ad4a36183651d5b7a05dd154c5565bd400810aceff25ba156525bc78db4690a73d5d34ca75a86351"`;
exports[`Secret Module Tests encryptVerifyString should match snapshot 1`] = `"|VS|d3ebac3b568ef4e5369441a40eee4a24059b8a3a18256373f959d39859b7dc7b613f7d18bc2271184e60e09690f79f7fb550ec05a23a758a35347e0caf6b631c"`;

exports[`Secret Module Tests fixV4VerifyStringToV5 should match snapshot 1`] = `"|VS|test123"`;

exports[`Secret Module Tests generateMasterKeyFromSeed should match snapshot 1`] = `
{
"chainCode": "15aa79fafb75cffcfda898a6b92f6e13d3693ddf269a0cf482cbe10c744f712c",
}
`;

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"`;
Loading

0 comments on commit e42042b

Please sign in to comment.