Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CIP-105 | Refactor and tidy test vectors #1

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions CIP-0105/test-vectors.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Test Vector for CIP-0105

Here we provide a set of test vectors.

### Scripts

Scripts were constructed according to the following native script templates:

**Script 1:** `all [$vKeyhash, active_from 5001]`

**Script 2:** `any [$vKeyhash, all [active_from 5001, active_until 6001]]`

Where `$vKeyhash` is the Verification key hash aka `{drep1... | cc_cold1... | cc_hot1...}`.

## Test vector 1

See [test vector 1 file](./test-vectors/test-vector-1.md)

## Test vector 2

See [test vector 2 file](./test-vectors/test-vector-2.md)

## Test vector 3

See [test vector 3 file](./test-vectors/test-vector-3.md)

## Test vector 4

See [test vector 4 file](./test-vectors/test-vector-4.md)
150 changes: 150 additions & 0 deletions CIP-0105/test-vectors/test-vector-1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
## Test vector 1

Twelve word mnemonic, with account index of zero.

**Mnemonic:** `test walk nut penalty hip pave soap entry language right filter choice`

**Account index:** `0x80000000`

#### Scripts

Scripts were constructed according to the following native script templates:

**Script 1:** `all [$vKeyhash, active_from 5001]`

**Script 2:** `any [$vKeyhash, all [active_from 5001, active_until 6001]]`

Where `$vKeyhash` is the Verification key hash aka `{drep | cc_cold | cc_hot}`.

### DRep Keys

#### DRep signing key

Hex: `a8e57a8e0a68b7ab50c6cd13e8e0811718f506d34fca674e12740fdf73e1a45e612fa30b7e4bbe9883958dcf365de1e6c1607c33172c5d3d7754f3294e450925`

Bech32: `drep_sk14rjh4rs2dzm6k5xxe5f73cypzuv02pknfl9xwnsjws8a7ulp530xztarpdlyh05csw2cmnekths7dstq0se3wtza84m4fueffezsjfglsqmad`

#### DRep verification key

Hex: `f74d7ac30513ac1825715fd0196769761fca6e7f69de33d04ef09a0c417a752b`

Bech32: `drep_vk17axh4sc9zwkpsft3tlgpjemfwc0u5mnld80r85zw7zdqcst6w54sdv4a4e`

#### DRep extended signing key

Hex: `a8e57a8e0a68b7ab50c6cd13e8e0811718f506d34fca674e12740fdf73e1a45e612fa30b7e4bbe9883958dcf365de1e6c1607c33172c5d3d7754f3294e4509251d8411029969123371cde99fb075730f1da4fd41ee7acefba7e211f0e20c91ca`

Bech32: `drep_xsk14rjh4rs2dzm6k5xxe5f73cypzuv02pknfl9xwnsjws8a7ulp530xztarpdlyh05csw2cmnekths7dstq0se3wtza84m4fueffezsjfgassgs9xtfzgehrn0fn7c82uc0rkj06s0w0t80hflzz8cwyry3eg9066uj`

#### DRep extended verification key

Hex: `f74d7ac30513ac1825715fd0196769761fca6e7f69de33d04ef09a0c417a752b1d8411029969123371cde99fb075730f1da4fd41ee7acefba7e211f0e20c91ca`

Bech32: `drep_xvk17axh4sc9zwkpsft3tlgpjemfwc0u5mnld80r85zw7zdqcst6w543mpq3q2vkjy3nw8x7n8asw4es78dyl4q7u7kwlwn7yy0sugxfrjs6z25qe`

#### Verification key hash (DRep ID)

Hex: `a5b45515a3ff8cb7c02ce351834da324eb6dfc41b5779cb5e6b832aa`

Bech32: `drep15k6929drl7xt0spvudgcxndryn4kmlzpk4meed0xhqe25nle07s`

#### Script 1 hash (DRep ID)

Hex: `d0657126dbf0c135a7224d91ca068f5bf769af6d1f1df0bce5170ec5`

Bech32: `drep_script16pjhzfkm7rqntfezfkgu5p50t0mkntmdruwlp089zu8v29l95rg`

#### Script 2 hash (DRep ID)

Hex: `ae5acf0511255d647c84b3184a2d522bf5f6c5b76b989f49bd383bdd`

Bech32: `drep_script14edv7pg3y4wkglyykvvy5t2j906ld3dhdwvf7jda8qaa63d5kf4`

### Constitutional Committee Cold

#### Constitutional Committee Signing Key

Hex: `684f5b480507755f387e7e544cb44b3e55eb3b88b9f6976bd41e5f746ce1a45e28b4aa8bf129088417c0fade65a98a056cbcda96c0a8874cfcbef0bf53932a12`

Bech32: `cc_cold_sk1dp84kjq9qa647wr70e2yedzt8e27kwugh8mfw675re0hgm8p530z3d9230cjjzyyzlq04hn94x9q2m9um2tvp2y8fn7tau9l2wfj5yslmdl88`

#### Constitutional Committee Cold Verification Key

Hex: `a9781abfc1604a18ebff6fc35062c000a7a66fdca1323710ed38c1dfc3315bea`

Bech32: `cc_cold_vk149up407pvp9p36lldlp4qckqqzn6vm7u5yerwy8d8rqalse3t04q7qsvwl`


#### Constitutional Committee Extended Cold Signing Key

Hex: `684f5b480507755f387e7e544cb44b3e55eb3b88b9f6976bd41e5f746ce1a45e28b4aa8bf129088417c0fade65a98a056cbcda96c0a8874cfcbef0bf53932a12c601968e75ff3052ffa675aedaaea49ff36cb23036df105e28e1d32b4527e6cf`

Bech32: `cc_cold_xsk1dp84kjq9qa647wr70e2yedzt8e27kwugh8mfw675re0hgm8p530z3d9230cjjzyyzlq04hn94x9q2m9um2tvp2y8fn7tau9l2wfj5ykxqxtgua0lxpf0lfn44md2afyl7dktyvpkmug9u28p6v452flxeuca0v7w`

#### Constitutional Committee Cold Extended Verification Key

Hex: `a9781abfc1604a18ebff6fc35062c000a7a66fdca1323710ed38c1dfc3315beac601968e75ff3052ffa675aedaaea49ff36cb23036df105e28e1d32b4527e6cf`

Bech32: `cc_cold_xvk149up407pvp9p36lldlp4qckqqzn6vm7u5yerwy8d8rqalse3t04vvqvk3e6l7vzjl7n8ttk646jflumvkgcrdhcstc5wr5etg5n7dnc8nqv5d`

#### Constitutional Committee Cold Verification Key Hash

Hex: `fefb9596ed670ad2c9978d78fe4eb36ba24cbba0a62fa4cdd0c2dcf5`

Bech32: `cc_cold1lmaet9hdvu9d9jvh34u0un4ndw3yewaq5ch6fnwsctw02xxwylj`

#### Constitutional Committee Cold Script 1 Hash

Hex: `ae6f2a27554d5e6971ef3e933e4f0be7ed7aeb60f6f93dfb81cd6e1c`

Bech32: `cc_cold_script14ehj5f64f40xju0086fnunctulkh46mq7munm7upe4hpcwpcatv`

#### Constitutional Committee Cold Script 2 Hash

Hex: `119c20cecfedfdba057292f76bb110afa3ab472f9c35a85daf492316`

Bech32: `cc_cold_script1zxwzpnk0ah7m5ptjjtmkhvgs4736k3e0ns66shd0fy33vdauq3j`

### Constitutional Committee Hot

#### Constitutional Committee Hot Signing Key

Hex: `d85717921e6289606e15c1e2ee65b3bd6ec247e357889ba16178eedb74e1a45ef955aa17bd002971b05e750048b766eb6df4d855c54dd2ec7ad8850e2fe35ebe`

Bech32: `cc_hot_sk1mpt30ys7v2ykqms4c83wuednh4hvy3lr27yfhgtp0rhdka8p5300j4d2z77sq2t3kp082qzgkanwkm05mp2u2nwja3ad3pgw9l34a0sdh7u7e`

#### Constitutional Committee Hot Verification Key

Hex: `cc_hot_vk10y48lq72hypxraew74lwjjn9e2dscuwphckglh2nrrpkgweqk5hschnzv5`

Bech32: `cc_hot_vk10y48lq72hypxraew74lwjjn9e2dscuwphckglh2nrrpkgweqk5hschnzv5`

#### Constitutional Committee Hot Extended Signing Key

Hex: `d85717921e6289606e15c1e2ee65b3bd6ec247e357889ba16178eedb74e1a45ef955aa17bd002971b05e750048b766eb6df4d855c54dd2ec7ad8850e2fe35ebe5487e846e9a708b27681d6835fa2dac968108b3c845e379597491e6b476aa0b2`

Bech32: `cc_hot_xsk1mpt30ys7v2ykqms4c83wuednh4hvy3lr27yfhgtp0rhdka8p5300j4d2z77sq2t3kp082qzgkanwkm05mp2u2nwja3ad3pgw9l34a0j5sl5yd6d8pze8dqwksd069kkfdqggk0yytcmet96fre45w64qkgyxl0dt`

#### Constitutional Committee Hot Extended Verification Key

Hex: `792a7f83cab90261f72ef57ee94a65ca9b0c71c1be2c8fdd5318c3643b20b52f5487e846e9a708b27681d6835fa2dac968108b3c845e379597491e6b476aa0b2`

Bech32: `cc_hot_xvk10y48lq72hypxraew74lwjjn9e2dscuwphckglh2nrrpkgweqk5h4fplggm56wz9jw6qadq6l5tdvj6qs3v7ggh3hjkt5j8ntga42pvs5rvh0a`

#### Constitutional Committee Hot Verification Key Hash

Hex: `f6d29c0f7164d37610cbf67b126a993beb24a076d0653f1fa069588f`

Bech32: `cc_hot17mffcrm3vnfhvyxt7ea3y65e804jfgrk6pjn78aqd9vg7xpq8dv`

#### Constitutional Committee Hot Script 1 Hash

Hex: `d27a4229c92ec8961b6bfd32a87380dcee4a08c77b0d6c8b33f180e8`

Bech32: `cc_hot_script16fayy2wf9myfvxmtl5e2suuqmnhy5zx80vxkezen7xqwskncf40`

#### Constitutional Committee Hot Script 2 Hash

Hex: `62e0798c7036ff35862cf42f4e7ada06f7fb5b6465390082a691be14`

Bech32: `cc_hot_script1vts8nrrsxmlntp3v7sh5u7k6qmmlkkmyv5uspq4xjxlpg6u229p`
153 changes: 153 additions & 0 deletions CIP-0105/test-vectors/test-vector-2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@

## Test vector 2

**Mnemonic:** `test walk nut penalty hip pave soap entry language right filter choice`

**Account index:** `0x80000100`

#### Scripts

Scripts were constructed according to the following native script templates:

**Script 1:** `all [$vKeyhash, active_from 5001]`

**Script 2:** `any [$vKeyhash, all [active_from 5001, active_until 6001]]`

Where `$vKeyhash` is the Verification key hash aka `{drep1... | cc_cold1... | cc_hot1...}`.

### DRep Keys

#### DRep signing key

Hex: `10fb8436bb02e2a4d3127860f771a9f1f9aff362f202346e3238b38a76e1a45eec82a22f492d48528c7e191f52b59489adf383db4811cbce4c6cdd8cef91c408`

Bech32: `drep_sk1zracgd4mqt32f5cj0ps0wudf78u6lumz7gprgm3j8zec5ahp530weq4z9ayj6jzj33lpj86jkk2gnt0ns0d5sywteexxehvva7gugzqjur0zk`


#### DRep verification key

Hex: `70344fe0329bbacbb33921e945daed181bd66889333eb73f3bb10ad8e4669976`

Bech32:
`drep_vk1wq6ylcpjnwavhveey855tkhdrqdav6yfxvltw0emky9d3erxn9mqdrlerg`

#### DRep extended signing key

Hex: `10fb8436bb02e2a4d3127860f771a9f1f9aff362f202346e3238b38a76e1a45eec82a22f492d48528c7e191f52b59489adf383db4811cbce4c6cdd8cef91c408a523761cec4182672a9592638e7017aa82ae6c1508377f4068d000a8cef56a30`

Bech32: `drep_xsk1zracgd4mqt32f5cj0ps0wudf78u6lumz7gprgm3j8zec5ahp530weq4z9ayj6jzj33lpj86jkk2gnt0ns0d5sywteexxehvva7gugz99ydmpemzpsfnj49vjvw88q9a2s2hxc9ggxal5q6xsqz5vaat2xqsha72w`

#### DRep extended verification key

Hex: `70344fe0329bbacbb33921e945daed181bd66889333eb73f3bb10ad8e4669976a523761cec4182672a9592638e7017aa82ae6c1508377f4068d000a8cef56a30`

Bech32: `drep_xvk1wq6ylcpjnwavhveey855tkhdrqdav6yfxvltw0emky9d3erxn9m22gmkrnkyrqn8922eycuwwqt64q4wds2ssdmlgp5dqq9gem6k5vq23ph3c`

#### Verification key hash (DRep ID)

Hex: `1ed314af7d3ff8fcd320c73eb58524d774ca38733ee00ebca81bd63a`

Bech32: `drep1rmf3ftma8lu0e5eqculttpfy6a6v5wrn8msqa09gr0tr5rgcuy9`

#### Script 1 hash (DRep ID)

Hex: `3e11f3d9b39639fbb9d59c6efec7b7c1e9dbcb104523c7a4b194c45c`

Bech32: `drep_script18cgl8kdnjculhww4n3h0a3ahc85ahjcsg53u0f93jnz9c0339av`

#### Script 2 hash (DRep ID)

Hex: `bba45271823634a8ba9fdb981ad76df02cd2384a4e1b43c41b2734a9`

Bech32: `drep_script1hwj9yuvzxc623w5lmwvp44md7qkdywz2fcd583qmyu62jvjnz69`

### Constitutional Committee Cold

#### Constitutional Committee Cold Signing Key

Hex: `684261ca0130e52a66861eefa275da745fd1c3f4f83100bca49904e773e1a45e0aafece23c531b52ec7915278591087a87591cb62ee96e1f716d96c9834388f4`

Bech32: `cc_cold_sk1dppxrjspxrjj5e5xrmh6yaw6w30arsl5lqcsp09ynyzwwulp530q4tlvug79xx6ja3u32fu9jyy84p6erjmza6twrackm9kfsdpc3aqr79jja`


#### Constitutional Committee Cold Verification Key

Hex: `cab60e3b880ba64b252b942bb645d5e58ef4d6f243542fc28ce4051170171f91`

Bech32: `cc_cold_vk1e2mquwugpwnykfftjs4mv3w4uk80f4hjgd2zls5vusz3zuqhr7gs3qg4hr`

#### Constitutional Committee Cold Extended Signing Key

Hex: `684261ca0130e52a66861eefa275da745fd1c3f4f83100bca49904e773e1a45e0aafece23c531b52ec7915278591087a87591cb62ee96e1f716d96c9834388f43ee1839d84124acdea81c69ee7e6e828387e51067878f30cab414ec5f2e36b42`

Bech32:
`cc_cold_xsk1dppxrjspxrjj5e5xrmh6yaw6w30arsl5lqcsp09ynyzwwulp530q4tlvug79xx6ja3u32fu9jyy84p6erjmza6twrackm9kfsdpc3ap7uxpempqjftx74qwxnmn7d6pg8pl9zpnc0rese26pfmzl9cmtgg8xsxvu`

#### Constitutional Committee Cold Extended Verification Key

Hex: `cab60e3b880ba64b252b942bb645d5e58ef4d6f243542fc28ce4051170171f913ee1839d84124acdea81c69ee7e6e828387e51067878f30cab414ec5f2e36b42`

Bech32: `cc_cold_xvk1e2mquwugpwnykfftjs4mv3w4uk80f4hjgd2zls5vusz3zuqhr7gnacvrnkzpyjkda2qud8h8um5zswr72yr8s78npj45znk97t3kkssryhkyv`

#### Constitutional Committee Cold Verification Key Hash

Hex: `e93734fae718e91bbf45c86f8cd81e7f9687e6cffe4c910dd1a4c360`

Bech32: `cc_cold1aymnf7h8rr53h069ephcekq707tg0ek0lexfzrw35npkq02wke0`

#### Constitutional Committee Cold Script 1 Hash

Hex: `08d78337fcf51a2a9fe93dee7d21679a3c28948cd90184155040b3e4`

Bech32: `cc_cold_script1prtcxdlu75dz48lf8hh86gt8ng7z39yvmyqcg92sgze7g6m8dtq`

#### Constitutional Committee Cold Script 2 Hash

Hex: `2e8b77ecaa9f003978dea86515cee6b97df4dff52298e60198d5b387`

Bech32: `cc_cold_script1969h0m92nuqrj7x74pj3tnhxh97lfhl4y2vwvqvc6kecwdshr6f`

### Constitutional Committee Hot

#### Constitutional Committee Hot Signing Key

Hex: `a05672b82125c65c811ba4e7cf2e7d8b53b01baae5699aa3d618825e78e1a45e1c8a3ab1ec59bd0e79ef3d3466fb8c6823159433266aecc4ecdf21b111af0587`

Bech32: `cc_hot_sk15pt89wppyhr9eqgm5nnu7tna3dfmqxa2u45e4g7krzp9u78p530pez36k8k9n0gw08hn6drxlwxxsgc4jsejv6hvcnkd7gd3zxhstpc7gujxf`

#### Constitutional Committee Hot Verification Key

Hex: `783ae09be2f648b59483a9bee5cace8d68c7e6e2819bfb5a1a00fbf204bea06e`

Bech32: `cc_hot_vk10qawpxlz7eytt9yr4xlwtjkw345v0ehzsxdlkks6qralyp975phqx538xn`

#### Constitutional Committee Hot Extended Signing Key

Hex: `a05672b82125c65c811ba4e7cf2e7d8b53b01baae5699aa3d618825e78e1a45e1c8a3ab1ec59bd0e79ef3d3466fb8c6823159433266aecc4ecdf21b111af058731609b9d64a7103fa9ab1bcdadfdea2d2366b3be0268df7f68edc9b36f8d300e`

Bech32: `cc_hot_xsk15pt89wppyhr9eqgm5nnu7tna3dfmqxa2u45e4g7krzp9u78p530pez36k8k9n0gw08hn6drxlwxxsgc4jsejv6hvcnkd7gd3zxhstpe3vzde6e98zql6n2cmekklm63dydnt80szdr0h768dexeklrfspc5lznuz`

#### Constitutional Committee Hot Extended Verification Key

Hex: `783ae09be2f648b59483a9bee5cace8d68c7e6e2819bfb5a1a00fbf204bea06e31609b9d64a7103fa9ab1bcdadfdea2d2366b3be0268df7f68edc9b36f8d300e`

Bech32:
`cc_hot_xvk10qawpxlz7eytt9yr4xlwtjkw345v0ehzsxdlkks6qralyp975phrzcymn4j2wypl4x43hnddlh4z6gmxkwlqy6xl0a5wmjdnd7xnqrsvak8ry`

#### Constitutional Committee Hot Verification Key Hash

Hex: `d1d4ebdb19689e95e097919bd8712441e89b41ec36de47bf40344f85`

Bech32: `cc_hot1682whkcedz0ftcyhjxdasufyg85fks0vxm0y006qx38c2jz0ae0`

#### Constitutional Committee Hot Script 1 Hash

Hex: `bdf295c04cac9c78a69bca06cb8f2cffbee76d739759e80ec09a0655`

Bech32: `cc_hot_script1hheftszv4jw83f5megrvhrevl7lwwmtnjav7srkqngr92gna52t`

#### Constitutional Committee Hot Script 2 Hash

Hex: `6a0b26bbf030bb6c2c8e62b0ef77c84494d771e81517ccf1434d5e26`

Bech32: `cc_hot_script1dg9jdwlsxzakctywv2cw7a7ggj2dwu0gz5tueu2rf40zvkj8dwc`
Loading