Skip to content

Commit

Permalink
Updated some signing test vectors.
Browse files Browse the repository at this point in the history
  • Loading branch information
murisi committed Feb 5, 2024
1 parent 4d944ce commit 22ce62f
Show file tree
Hide file tree
Showing 42 changed files with 11 additions and 13 deletions.
Binary file modified tests_zemu/snapshots/s-sign-bond/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-sign-bond/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-sign-bond/00003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-sign-bond/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-sign-bond/00005.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-sign-update_vp/00000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-sign-update_vp/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-sign-update_vp/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-sign-update_vp/00003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-sign-update_vp/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-sign-update_vp/00005.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-sign-update_vp/00006.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-sign-update_vp/00007.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-sign-bond/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-sign-bond/00003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-sign-bond/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-sign-update_vp/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-sign-update_vp/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-sign-update_vp/00003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-sign-update_vp/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-sign-update_vp/00005.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-sign-update_vp/00006.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-sign-update_vp/00007.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-sign-bond/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-sign-bond/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-sign-update_vp/00001.png
Binary file modified tests_zemu/snapshots/st-sign-update_vp/00002.png
Binary file modified tests_zemu/snapshots/st-sign-update_vp/00003.png
Binary file modified tests_zemu/snapshots/st-sign-update_vp/00004.png
Binary file removed tests_zemu/snapshots/st-sign-update_vp/00005.png
Diff not rendered.
Binary file removed tests_zemu/snapshots/st-sign-update_vp/00006.png
Diff not rendered.
Binary file modified tests_zemu/snapshots/x-sign-bond/00002.png
Binary file modified tests_zemu/snapshots/x-sign-bond/00003.png
Binary file modified tests_zemu/snapshots/x-sign-bond/00004.png
Binary file modified tests_zemu/snapshots/x-sign-update_vp/00001.png
Binary file modified tests_zemu/snapshots/x-sign-update_vp/00002.png
Binary file modified tests_zemu/snapshots/x-sign-update_vp/00003.png
Binary file modified tests_zemu/snapshots/x-sign-update_vp/00004.png
Binary file modified tests_zemu/snapshots/x-sign-update_vp/00005.png
Binary file modified tests_zemu/snapshots/x-sign-update_vp/00006.png
Binary file modified tests_zemu/snapshots/x-sign-update_vp/00007.png
24 changes: 11 additions & 13 deletions tests_zemu/tests/transactions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ function hashSignatureSec(pubkeys: Buffer[], salt: Buffer, hashes: { [index: num
const TEST_DATA = [
{
name: 'bond',
blob: Buffer.from('1d0000006c6f63616c6e65742e6664633665356661643365356535326433662d300023000000323032332d31312d31365431343a33313a31322e3030383437393437392b30303a303029e3fd2d0a8c786d5318be88f0be06629152ac26628396e28350f7c5b81b1d58f09f9bf315fe3b244703f3695cafff63b67156f799dc5c0742d1612cdd4897be0101000000000000000000000000000000000000000000000000000000000000000032fdd4e57f56519541491312d4e9089032244eca0048998ffa0340c473b72dad3604abd76581e71e4a334d0708ef754a0adcec66d80300000000000000a861000000000000000200000002b3078bd88b010000007c7a739c83e943d4a56a0fd4e4c52a9edc0d66d9105324bcc909619857a6683b010c00000074785f626f6e642e7761736d00b3078bd88b0100004b00000000f2d1fbf5a690f8ab12cfa6166425bec4d7569bb400e9a435000000000000000000000000000000000000000000000000000000000100ba4c9645a23343896227110a902af84e7b4a4bb3', 'hex'),
blob: Buffer.from('150000005552355f5f325a61455f6e36326a4f54655973355f00260000002d3234333338352d30362d33305430343a34353a35302e3537313637353535362b30303a30306692c99f5c20a9b2031889db018bb6459e8c42203dafa62f8c019a9c4e4dbc62e6a825ebd04018efadd3d85c7b7c6055010ada9d12974a937ad34d7493c63445686829c655a91165cb9e70971ef887843ee5c0b31369141ac9ade456711a6cee01d1429a3798de6d23000000000000000000000000000000000000000000000000050031d10fd973261dd8a45ab446bf1912375ab85bda0062ca77b4ae3a84b582b6dcc2e385156de8d3b03a52c87f0c3a29beef54fb85b1eef44352e2f12d063e99624b3e2b151a016b13c950778aab52516b28c3bbd38ac0529bdcafd523de0339fb11e39afb9387020000000092fe73788d0100004b0000000007e0c2092d7266a53044324f00cdebb6fe3918c697a5727b3e091c240000000000000000000000000000000000000000000000000100bdb3ae7d368aace8b84940aa7dcdef116e06bfde0292fe73788d01000000e30fedce40816e3afc87c1b4a7c97b3e0c6b4627310d37d00d04cf87a6629653010c00000074785f626f6e642e7761736d', 'hex'),
sectionHashes: {
0: Buffer.from('5b693f86a6a8053b79effacd031e2367a1d35cc64988795768920b2965013742', 'hex'),
1: Buffer.from('29e3fd2d0a8c786d5318be88f0be06629152ac26628396e28350f7c5b81b1d58', 'hex'),
2: Buffer.from('f09f9bf315fe3b244703f3695cafff63b67156f799dc5c0742d1612cdd4897be', 'hex'),
0xff: Buffer.from('c7fec5279e22792a9cad6346f8933c1b2249043e1a03c835030d4e71dfbac3e0', 'hex'),
0: Buffer.from('c32ffdff6163484fe5feb04a6c8f747a4052c21945dcc7f12ca466868c4a4933', 'hex'),
1: Buffer.from('e6a825ebd04018efadd3d85c7b7c6055010ada9d12974a937ad34d7493c63445', 'hex'),
2: Buffer.from('6692c99f5c20a9b2031889db018bb6459e8c42203dafa62f8c019a9c4e4dbc62', 'hex'),
0xff: Buffer.from('326289a26ecbe995affe03912a4e84b9c853262c01ef4924f31f3be22e7e1a1a', 'hex'),
} as { [index: number]: Buffer },
},
{
Expand All @@ -84,15 +84,13 @@ const TEST_DATA = [
},
{
name: 'update_vp',
blob: Buffer.from('1d0000006c6f63616c6e65742e6664633665356661643365356535326433662d300023000000323032332d31312d31365431343a33333a30352e3139313137373835302b30303a30305df9287d1f3b893eef4643c47a4d40a8838c9fc6a39bbda275e20c308f6bb0a290f781fd267026dfd1335d092f0a46d9cf00b8816c5997e55eaf88e0e5cbf3dc0101000000000000000000000000000000000000000000000000000000000000000032fdd4e57f56519541491312d4e9089032244eca009fd0df101ba3e91d24f555893ae1bf0b271bd98363d6d4c659876731fe4a75171400000000000000a861000000000000000500000001d2c18cd88b0100000053e9023f2edc55e90bdcf6024760140a91a7904cb4a529cb1707ea3d34ee685a010c00000076705f757365722e7761736d02d3c18cd88b0100000049a9b2023b4858255845bfa3949e314f241858949214950471b0b598febd7248011600000074785f7570646174655f6163636f756e742e7761736d00d3c18cd88b0100009f00000000ba4c9645a23343896227110a902af84e7b4a4bb301a911dbc336d7feab85e374e331542d94155fe25219bad6d7f497a2e5d9d6a41703000000009fd0df101ba3e91d24f555893ae1bf0b271bd98363d6d4c659876731fe4a75170048998ffa0340c473b72dad3604abd76581e71e4a334d0708ef754a0adcec66d80075c251407a7ed91b8114f90b6f454db9071a290458e2db36106b99daf4bf83b101020301000000ae19fb14011c761f61ea480a4d9fffd1abb049be4715f5344d6f60093470c0800000ba4c9645a23343896227110a902af84e7b4a4bb30100000000000d1cfc74bd04c329f14c466b7b17ac72b00818db85bb1069415a898bfa95cd21ae416cfc38e190ff2a631f1f9dd700556d5ad25eef92a5f5dffa5af3a723390c03050000009ac0dfc46072a5736aa2257015d54ecb5490f6811bf9ffee38662c38cecb1ea8a911dbc336d7feab85e374e331542d94155fe25219bad6d7f497a2e5d9d6a4175df9287d1f3b893eef4643c47a4d40a8838c9fc6a39bbda275e20c308f6bb0a290f781fd267026dfd1335d092f0a46d9cf00b8816c5997e55eaf88e0e5cbf3dc66f097755345c31d1ccf8b764bbbd8ff8b8496f7ac88a32f4967b98138b642aa0101000000009fd0df101ba3e91d24f555893ae1bf0b271bd98363d6d4c659876731fe4a7517010000000000e7c0e073a254bccce92bb5d6b35da86f6ee1b300fa6d3f54d1414a06745a895d32d5b86fe029e0ab456d2ade56f79d066f3e9c6dd80088c9fdc6e00a4a472f0a', 'hex'),
blob: Buffer.from('1e000000347133434953386c6e5f5f4e5657747a4d30587538545f30535f695f694601250000002b37323536322d31322d32385432313a34323a31312e3636393233393337382b30303a3030260000002b3236313437372d31312d30395430363a31373a35352e3637383136333537392b30303a30301016529e0f47127de7f27b40d479856e09d56b3b071fdfba740f70bcb13e9e8d0f0b2ab4a4b0c8037e5e4a69b57a161ad61725d9238da54e4f7aef83287f48bb478a1fdcac485929cf6cfb0eafcd994265f4220b76974c6e48e947fe235eb05501182b37fb0cad25500000000000000000000000000000000000000000000000005400e5b331e2bef7a2a64a901e85e3d1c7898efb37fa009edbe8da5a7d769490fa23cd647a5483ee4c3887d5b59cab66bdcf7380f27699e35715b47d9c02120d811502bfd124c101fb91884dd8240120b5d8afb36be277ff827f02c403454094f3e5032c0729464e0300000001884f57f60ff7b0de00af2b089e3aafdecc096bdca242dde6aff6ebc15ce4ba33045290f9c37f30a6dc0000d5fe73788d0100003c00000001d3ed6a7207e133c19c181f3a44008d319921616c01da73db72fa4425a4fab613f0005e8f7ef58d8df7ac671c81119189a498f84af300000000010002d5fe73788d01000000d9510e0f4e1fd123e9cf4033b5b3752eed07164e2e8a9e336b9dfdfe72b1f45a011600000074785f7570646174655f6163636f756e742e7761736d', 'hex'),
sectionHashes: {
0: Buffer.from('9ac0dfc46072a5736aa2257015d54ecb5490f6811bf9ffee38662c38cecb1ea8', 'hex'),
1: Buffer.from('a911dbc336d7feab85e374e331542d94155fe25219bad6d7f497a2e5d9d6a417', 'hex'),
2: Buffer.from('5df9287d1f3b893eef4643c47a4d40a8838c9fc6a39bbda275e20c308f6bb0a2', 'hex'),
3: Buffer.from('90f781fd267026dfd1335d092f0a46d9cf00b8816c5997e55eaf88e0e5cbf3dc', 'hex'),
4: Buffer.from('66f097755345c31d1ccf8b764bbbd8ff8b8496f7ac88a32f4967b98138b642aa', 'hex'),
5: Buffer.from('521915f7e75cbde1d94d178a83f6c4ca51bc77640fcd3aaeb28b89ac16620d58', 'hex'),
0xff: Buffer.from('ae19fb14011c761f61ea480a4d9fffd1abb049be4715f5344d6f60093470c080', 'hex'),
0: Buffer.from('62471999b85604e0c74af0120b5ce29bfd0c0b2e26e219c0c12c8ebda17efb3f', 'hex'),
1: Buffer.from('da73db72fa4425a4fab613f0005e8f7ef58d8df7ac671c81119189a498f84af3', 'hex'),
2: Buffer.from('0f0b2ab4a4b0c8037e5e4a69b57a161ad61725d9238da54e4f7aef83287f48bb', 'hex'),
3: Buffer.from('1016529e0f47127de7f27b40d479856e09d56b3b071fdfba740f70bcb13e9e8d', 'hex'),
0xff: Buffer.from('9ec0932bd9860dc041c5dbe087cfdb207acb45207de2e9b974537a5f691fd99b', 'hex'),
} as { [index: number]: Buffer },
},
{
Expand Down

0 comments on commit 22ce62f

Please sign in to comment.