{
  "setup": {
    "mnemonic": "all all all all all all all all all all all all",
    "passphrase": ""
  },
  "tests": [
    {
      "description": "Sample stake pool registration certificate",
      "parameters": {
        "protocol_magic": 764824073,
        "network_id": 1,
        "fee": 42,
        "ttl": 10,
        "validity_interval_start": null,
        "certificates": [
          {
            "type": 3,
            "pool_parameters": {
              "pool_id": "f61c42cbf7c8c53af3f520508212ad3e72f674f957fe23ff0acb4973",
              "vrf_key_hash": "198890ad6c92e80fbdab554dda02da9fb49d001bbd96181f3e07f7a6ab0d0640",
              "pledge": 500000000,
              "cost": 340000000,
              "margin": {
                "numerator": 1,
                "denominator": 2
              },
              "reward_account": "stake1uya87zwnmax0v6nnn8ptqkl6ydx4522kpsc3l3wmf3yswygwx45el",
              "owners": [
                {
                  "staking_key_path": "m/1852'/1815'/0'/2/0"
                },
                {
                  "staking_key_hash": "3a7f09d3df4cf66a7399c2b05bfa234d5a29560c311fc5db4c490711"
                }
              ],
              "relays": [
                {
                  "type": 0,
                  "ipv4_address": "192.168.0.1",
                  "ipv6_address": "2001:0db8:85a3:0000:0000:8a2e:0370:7334",
                  "port": 1234
                },
                {
                  "type": 0,
                  "ipv6_address": "2001:0db8:85a3:0000:0000:8a2e:0370:7334",
                  "port": 1234
                },
                {
                  "type": 0,
                  "ipv4_address": "192.168.0.1",
                  "port": 1234
                },
                {
                  "type": 1,
                  "host_name": "www.test.test",
                  "port": 1234
                },
                {
                  "type": 2,
                  "host_name": "www.test2.test"
                }
              ],
              "metadata": {
                "url": "https://www.test.test",
                "hash": "914c57c1f12bbf4a82b12d977d4f274674856a11ed4b9b95bd70f5d41c5064a6"
              }
            }
          }
        ],
        "withdrawals": [],
        "auxiliary_data": null,
        "inputs": [
          {
            "path": null,
            "prev_hash": "3b40265111d8bb3c3c608d95b3a0bf83461ace32d79336579a1939b3aad1c0b7",
            "prev_index": 0
          }
        ],
        "outputs": [
          {
            "address": "addr1q84sh2j72ux0l03fxndjnhctdg7hcppsaejafsa84vh7lwgmcs5wgus8qt4atk45lvt4xfxpjtwfhdmvchdf2m3u3hlsd5tq5r",
            "amount": "1"
          }
        ],
        "mint": [],
        "script_data_hash": null,
        "collateral_inputs": [],
        "required_signers": [],
        "collateral_return": null,
        "total_collateral": null,
        "reference_inputs": [],
        "signing_mode": "POOL_REGISTRATION_AS_OWNER",
        "additional_witness_requests": [],
        "include_network_id": false,
        "tag_cbor_sets": false
      },
      "result": {
        "tx_hash": "e3b9a5657bf62609465a930c8359d774c73944973cfc5a104a0f0ed1e1e8db21",
        "witnesses": [
          {
            "type": 1,
            "pub_key": "bc65be1b0b9d7531778a1317c2aa6de936963c3f9ac7d5ee9e9eda25e0c97c5e",
            "signature": "06305b52f76d2d2da6925c02036a9a28456976009f8c6432513f273110d09ea26db79c696cec322b010e5cbb7d90a6b473b157e65df846a1487062569a5f5a04",
            "chain_code": null
          }
        ]
      }
    },
    {
      "description": "Sample stake pool registration with zero margin",
      "parameters": {
        "protocol_magic": 764824073,
        "network_id": 1,
        "fee": 42,
        "ttl": 10,
        "validity_interval_start": null,
        "certificates": [
          {
            "type": 3,
            "pool_parameters": {
              "pool_id": "f61c42cbf7c8c53af3f520508212ad3e72f674f957fe23ff0acb4973",
              "vrf_key_hash": "198890ad6c92e80fbdab554dda02da9fb49d001bbd96181f3e07f7a6ab0d0640",
              "pledge": 500000000,
              "cost": 340000000,
              "margin": {
                "numerator": 0,
                "denominator": 1
              },
              "reward_account": "stake1uya87zwnmax0v6nnn8ptqkl6ydx4522kpsc3l3wmf3yswygwx45el",
              "owners": [
                {
                  "staking_key_path": "m/1852'/1815'/0'/2/0"
                },
                {
                  "staking_key_hash": "3a7f09d3df4cf66a7399c2b05bfa234d5a29560c311fc5db4c490711"
                }
              ],
              "relays": [
                {
                  "type": 0,
                  "ipv4_address": "192.168.0.1",
                  "ipv6_address": "2001:0db8:85a3:0000:0000:8a2e:0370:7334",
                  "port": 1234
                },
                {
                  "type": 0,
                  "ipv6_address": "2001:0db8:85a3:0000:0000:8a2e:0370:7334",
                  "port": 1234
                },
                {
                  "type": 0,
                  "ipv4_address": "192.168.0.1",
                  "port": 1234
                },
                {
                  "type": 1,
                  "host_name": "www.test.test",
                  "port": 1234
                },
                {
                  "type": 2,
                  "host_name": "www.test2.test"
                }
              ],
              "metadata": {
                "url": "https://www.test.test",
                "hash": "914c57c1f12bbf4a82b12d977d4f274674856a11ed4b9b95bd70f5d41c5064a6"
              }
            }
          }
        ],
        "withdrawals": [],
        "auxiliary_data": null,
        "inputs": [
          {
            "path": null,
            "prev_hash": "3b40265111d8bb3c3c608d95b3a0bf83461ace32d79336579a1939b3aad1c0b7",
            "prev_index": 0
          }
        ],
        "outputs": [
          {
            "address": "addr1q84sh2j72ux0l03fxndjnhctdg7hcppsaejafsa84vh7lwgmcs5wgus8qt4atk45lvt4xfxpjtwfhdmvchdf2m3u3hlsd5tq5r",
            "amount": "1"
          }
        ],
        "mint": [],
        "script_data_hash": null,
        "collateral_inputs": [],
        "required_signers": [],
        "collateral_return": null,
        "total_collateral": null,
        "reference_inputs": [],
        "signing_mode": "POOL_REGISTRATION_AS_OWNER",
        "additional_witness_requests": [],
        "include_network_id": false,
        "tag_cbor_sets": false
      },
      "result": {
        "tx_hash": "c0d944db15446cf05e8db014685414c928d4d9a3e96aea229234be56eeae34c5",
        "witnesses": [
          {
            "type": 1,
            "pub_key": "bc65be1b0b9d7531778a1317c2aa6de936963c3f9ac7d5ee9e9eda25e0c97c5e",
            "signature": "39e1750c2599cfc3a35bd477e25abb4786cf493d903734b91f71135229a3a6da2d2741e36e255ef1cae6b424324c3595f2050da5715cd573ea5370a91296860f",
            "chain_code": null
          }
        ]
      }
    },
    {
      "description": "Sample stake pool registration certificate with owner staking path account larger than 100",
      "parameters": {
        "security_checks": "prompt",
        "protocol_magic": 764824073,
        "network_id": 1,
        "fee": 42,
        "ttl": 10,
        "validity_interval_start": null,
        "certificates": [
          {
            "type": 3,
            "pool_parameters": {
              "pool_id": "f61c42cbf7c8c53af3f520508212ad3e72f674f957fe23ff0acb4973",
              "vrf_key_hash": "198890ad6c92e80fbdab554dda02da9fb49d001bbd96181f3e07f7a6ab0d0640",
              "pledge": 500000000,
              "cost": 340000000,
              "margin": {
                "numerator": 1,
                "denominator": 2
              },
              "reward_account": "stake1uya87zwnmax0v6nnn8ptqkl6ydx4522kpsc3l3wmf3yswygwx45el",
              "owners": [
                {
                  "staking_key_path": "m/1852'/1815'/190'/2/0"
                },
                {
                  "staking_key_hash": "3a7f09d3df4cf66a7399c2b05bfa234d5a29560c311fc5db4c490711"
                }
              ],
              "relays": [
                {
                  "type": 0,
                  "ipv4_address": "192.168.0.1",
                  "ipv6_address": "2001:0db8:85a3:0000:0000:8a2e:0370:7334",
                  "port": 1234
                },
                {
                  "type": 0,
                  "ipv6_address": "2001:0db8:85a3:0000:0000:8a2e:0370:7334",
                  "port": 1234
                },
                {
                  "type": 0,
                  "ipv4_address": "192.168.0.1",
                  "port": 1234
                },
                {
                  "type": 1,
                  "host_name": "www.test.test",
                  "port": 1234
                },
                {
                  "type": 2,
                  "host_name": "www.test2.test"
                }
              ],
              "metadata": {
                "url": "https://www.test.test",
                "hash": "914c57c1f12bbf4a82b12d977d4f274674856a11ed4b9b95bd70f5d41c5064a6"
              }
            }
          }
        ],
        "withdrawals": [],
        "auxiliary_data": null,
        "inputs": [
          {
            "path": null,
            "prev_hash": "3b40265111d8bb3c3c608d95b3a0bf83461ace32d79336579a1939b3aad1c0b7",
            "prev_index": 0
          }
        ],
        "outputs": [
          {
            "address": "addr1q84sh2j72ux0l03fxndjnhctdg7hcppsaejafsa84vh7lwgmcs5wgus8qt4atk45lvt4xfxpjtwfhdmvchdf2m3u3hlsd5tq5r",
            "amount": "1"
          }
        ],
        "mint": [],
        "script_data_hash": null,
        "collateral_inputs": [],
        "required_signers": [],
        "collateral_return": null,
        "total_collateral": null,
        "reference_inputs": [],
        "signing_mode": "POOL_REGISTRATION_AS_OWNER",
        "additional_witness_requests": [],
        "include_network_id": false,
        "tag_cbor_sets": false
      },
      "result": {
        "tx_hash": "f3d62758ff2f520e7256e65be9d8165da60c7979a97202c19d625709412411fd",
        "witnesses": [
          {
            "type": 1,
            "pub_key": "d1a07f06b872c68120def0203d0fc3d582ac4ce3897d5eaf448026960875f76d",
            "signature": "c61890be9a2c964f2b64cbd6a91ac6a56332d28ea773855c86e3cd0d1693ae61e9bc053143d2aba14a721fae77edde70ee736b17a761e7b823d87071a4852205",
            "chain_code": null
          }
        ]
      }
    },
    {
      "description": "Stake pool registration certificate with no pool metadata",
      "parameters": {
        "protocol_magic": 764824073,
        "network_id": 1,
        "fee": 42,
        "ttl": 10,
        "validity_interval_start": null,
        "certificates": [
          {
            "type": 3,
            "pool_parameters": {
              "pool_id": "f61c42cbf7c8c53af3f520508212ad3e72f674f957fe23ff0acb4973",
              "vrf_key_hash": "198890ad6c92e80fbdab554dda02da9fb49d001bbd96181f3e07f7a6ab0d0640",
              "pledge": 500000000,
              "cost": 340000000,
              "margin": {
                "numerator": 1,
                "denominator": 2
              },
              "reward_account": "stake1uya87zwnmax0v6nnn8ptqkl6ydx4522kpsc3l3wmf3yswygwx45el",
              "owners": [
                {
                  "staking_key_path": "m/1852'/1815'/0'/2/0"
                }
              ],
              "relays": []
            }
          }
        ],
        "withdrawals": [],
        "auxiliary_data": null,
        "inputs": [
          {
            "path": null,
            "prev_hash": "3b40265111d8bb3c3c608d95b3a0bf83461ace32d79336579a1939b3aad1c0b7",
            "prev_index": 0
          }
        ],
        "outputs": [
          {
            "address": "addr1q84sh2j72ux0l03fxndjnhctdg7hcppsaejafsa84vh7lwgmcs5wgus8qt4atk45lvt4xfxpjtwfhdmvchdf2m3u3hlsd5tq5r",
            "amount": "1"
          }
        ],
        "mint": [],
        "script_data_hash": null,
        "collateral_inputs": [],
        "required_signers": [],
        "collateral_return": null,
        "total_collateral": null,
        "reference_inputs": [],
        "signing_mode": "POOL_REGISTRATION_AS_OWNER",
        "additional_witness_requests": [],
        "include_network_id": false,
        "tag_cbor_sets": false
      },
      "result": {
        "tx_hash": "504f9214142996e0b7e315103b25d88a4afa3d01dd5be22376921b52b01483c3",
        "witnesses": [
          {
            "type": 1,
            "pub_key": "bc65be1b0b9d7531778a1317c2aa6de936963c3f9ac7d5ee9e9eda25e0c97c5e",
            "signature": "aa2099208399fcc27c18d7ef0c7e873f9e22f0935b7e912cddd34b33b8cafd541a878dc01c042ce490e4c9bad3c62c2f59acaa009d336c9ff875c5f153d34900",
            "chain_code": null
          }
        ]
      }
    },
    {
      "description": "Stake pool registration on testnet",
      "parameters": {
        "protocol_magic": 42,
        "network_id": 0,
        "fee": 42,
        "ttl": 10,
        "validity_interval_start": null,
        "certificates": [
          {
            "type": 3,
            "pool_parameters": {
              "pool_id": "f61c42cbf7c8c53af3f520508212ad3e72f674f957fe23ff0acb4973",
              "vrf_key_hash": "198890ad6c92e80fbdab554dda02da9fb49d001bbd96181f3e07f7a6ab0d0640",
              "pledge": 500000000,
              "cost": 340000000,
              "margin": {
                "numerator": 1,
                "denominator": 2
              },
              "reward_account": "stake_test1uqa87zwnmax0v6nnn8ptqkl6ydx4522kpsc3l3wmf3yswygfvlkaz",
              "owners": [
                {
                  "staking_key_path": "m/1852'/1815'/0'/2/0"
                }
              ],
              "relays": []
            }
          }
        ],
        "withdrawals": [],
        "auxiliary_data": null,
        "inputs": [
          {
            "path": null,
            "prev_hash": "3b40265111d8bb3c3c608d95b3a0bf83461ace32d79336579a1939b3aad1c0b7",
            "prev_index": 0
          }
        ],
        "outputs": [
          {
            "address": "addr_test1vr9s8py7y68e3x66sscs0wkhlg5ssfrfs65084jrlrqcfqqtmut0e",
            "amount": "1"
          }
        ],
        "mint": [],
        "script_data_hash": null,
        "collateral_inputs": [],
        "required_signers": [],
        "collateral_return": null,
        "total_collateral": null,
        "reference_inputs": [],
        "signing_mode": "POOL_REGISTRATION_AS_OWNER",
        "additional_witness_requests": [],
        "include_network_id": false,
        "tag_cbor_sets": false
      },
      "result": {
        "tx_hash": "12921b4f8e77f815e0c8ed97c541fbd5ba38a6d3323f4ff1af0cb934b8ac6b39",
        "witnesses": [
          {
            "type": 1,
            "pub_key": "bc65be1b0b9d7531778a1317c2aa6de936963c3f9ac7d5ee9e9eda25e0c97c5e",
            "signature": "27cab81902d04b2491d7aa2bf57bd9db59d33c2df1502dae0412d5225c6b0b8f7b057de6a7e7eae25016ed6ea1f6e6239fb36a285216c6ee4a3cb3376287a300",
            "chain_code": null
          }
        ]
      }
    },
    {
      "description": "Sample stake pool registration certificate with auxiliary data",
      "parameters": {
        "protocol_magic": 764824073,
        "network_id": 1,
        "fee": 42,
        "ttl": 10,
        "validity_interval_start": null,
        "certificates": [
          {
            "type": 3,
            "pool_parameters": {
              "pool_id": "f61c42cbf7c8c53af3f520508212ad3e72f674f957fe23ff0acb4973",
              "vrf_key_hash": "198890ad6c92e80fbdab554dda02da9fb49d001bbd96181f3e07f7a6ab0d0640",
              "pledge": 500000000,
              "cost": 340000000,
              "margin": {
                "numerator": 1,
                "denominator": 2
              },
              "reward_account": "stake1uya87zwnmax0v6nnn8ptqkl6ydx4522kpsc3l3wmf3yswygwx45el",
              "owners": [
                {
                  "staking_key_path": "m/1852'/1815'/0'/2/0"
                },
                {
                  "staking_key_hash": "3a7f09d3df4cf66a7399c2b05bfa234d5a29560c311fc5db4c490711"
                }
              ],
              "relays": [
                {
                  "type": 0,
                  "ipv4_address": "192.168.0.1",
                  "ipv6_address": "2001:0db8:85a3:0000:0000:8a2e:0370:7334",
                  "port": 1234
                },
                {
                  "type": 0,
                  "ipv6_address": "2001:0db8:85a3:0000:0000:8a2e:0370:7334",
                  "port": 1234
                },
                {
                  "type": 0,
                  "ipv4_address": "192.168.0.1",
                  "port": 1234
                },
                {
                  "type": 1,
                  "host_name": "www.test.test",
                  "port": 1234
                },
                {
                  "type": 2,
                  "host_name": "www.test2.test"
                }
              ],
              "metadata": {
                "url": "https://www.test.test",
                "hash": "914c57c1f12bbf4a82b12d977d4f274674856a11ed4b9b95bd70f5d41c5064a6"
              }
            }
          }
        ],
        "withdrawals": [],
        "auxiliary_data": {
          "hash": "ea4c91860dd5ec5449f8f985d227946ff39086b17f10b5afb93d12ee87050b6a"
        },
        "inputs": [
          {
            "path": null,
            "prev_hash": "3b40265111d8bb3c3c608d95b3a0bf83461ace32d79336579a1939b3aad1c0b7",
            "prev_index": 0
          }
        ],
        "outputs": [
          {
            "address": "addr1q84sh2j72ux0l03fxndjnhctdg7hcppsaejafsa84vh7lwgmcs5wgus8qt4atk45lvt4xfxpjtwfhdmvchdf2m3u3hlsd5tq5r",
            "amount": "1"
          }
        ],
        "mint": [],
        "script_data_hash": null,
        "collateral_inputs": [],
        "required_signers": [],
        "collateral_return": null,
        "total_collateral": null,
        "reference_inputs": [],
        "signing_mode": "POOL_REGISTRATION_AS_OWNER",
        "additional_witness_requests": [],
        "include_network_id": false,
        "tag_cbor_sets": false
      },
      "result": {
        "tx_hash": "880fafab19a36407e9af300c2905e2f6bc8a8debd8b625005f56994d242ba460",
        "witnesses": [
          {
            "type": 1,
            "pub_key": "bc65be1b0b9d7531778a1317c2aa6de936963c3f9ac7d5ee9e9eda25e0c97c5e",
            "signature": "73dbc58bd6f6bc0d91a2b5852706dde05da7acbfde035481b88b1219518ea8609dc045ea3309b1ffb01830ec64578e80c70db37a1041e72d52649be20ff80009",
            "chain_code": null
          }
        ]
      }
    },
    {
      "description": "Sample stake pool registration certificate with a non-zero owner staking path address index",
      "parameters": {
        "protocol_magic": 764824073,
        "network_id": 1,
        "fee": 42,
        "ttl": 10,
        "validity_interval_start": null,
        "certificates": [
          {
            "type": 3,
            "pool_parameters": {
              "pool_id": "f61c42cbf7c8c53af3f520508212ad3e72f674f957fe23ff0acb4973",
              "vrf_key_hash": "198890ad6c92e80fbdab554dda02da9fb49d001bbd96181f3e07f7a6ab0d0640",
              "pledge": 500000000,
              "cost": 340000000,
              "margin": {
                "numerator": 1,
                "denominator": 2
              },
              "reward_account": "stake1uya87zwnmax0v6nnn8ptqkl6ydx4522kpsc3l3wmf3yswygwx45el",
              "owners": [
                {
                  "staking_key_path": "m/1852'/1815'/0'/2/1"
                },
                {
                  "staking_key_hash": "3a7f09d3df4cf66a7399c2b05bfa234d5a29560c311fc5db4c490711"
                }
              ],
              "relays": [
                {
                  "type": 0,
                  "ipv4_address": "192.168.0.1",
                  "ipv6_address": "2001:0db8:85a3:0000:0000:8a2e:0370:7334",
                  "port": 1234
                },
                {
                  "type": 0,
                  "ipv6_address": "2001:0db8:85a3:0000:0000:8a2e:0370:7334",
                  "port": 1234
                },
                {
                  "type": 0,
                  "ipv4_address": "192.168.0.1",
                  "port": 1234
                },
                {
                  "type": 1,
                  "host_name": "www.test.test",
                  "port": 1234
                },
                {
                  "type": 2,
                  "host_name": "www.test2.test"
                }
              ],
              "metadata": {
                "url": "https://www.test.test",
                "hash": "914c57c1f12bbf4a82b12d977d4f274674856a11ed4b9b95bd70f5d41c5064a6"
              }
            }
          }
        ],
        "withdrawals": [],
        "auxiliary_data": null,
        "inputs": [
          {
            "path": null,
            "prev_hash": "3b40265111d8bb3c3c608d95b3a0bf83461ace32d79336579a1939b3aad1c0b7",
            "prev_index": 0
          }
        ],
        "outputs": [
          {
            "address": "addr1q84sh2j72ux0l03fxndjnhctdg7hcppsaejafsa84vh7lwgmcs5wgus8qt4atk45lvt4xfxpjtwfhdmvchdf2m3u3hlsd5tq5r",
            "amount": "1"
          }
        ],
        "mint": [],
        "script_data_hash": null,
        "collateral_inputs": [],
        "required_signers": [],
        "collateral_return": null,
        "total_collateral": null,
        "reference_inputs": [],
        "signing_mode": "POOL_REGISTRATION_AS_OWNER",
        "additional_witness_requests": [],
        "include_network_id": false,
        "tag_cbor_sets": false
      },
      "result": {
        "tx_hash": "36d7e5b9acc9487b9190c3bbe8fa0ec60a6fd66b3c0af7cfd8a015a18b00d765",
        "witnesses": [
          {
            "type": 1,
            "pub_key": "3963e13782d53ac894789a145db59830231d11f84d2df25c7f38db320de20cdc",
            "signature": "b9c1131865991dbec67da4db2ff315afbf84965c823a893e4821382630d669e7e1b95197743213f24effaf8fee174a4369cfb5db417f20dce4ed40fd42450e0a",
            "chain_code": null
          }
        ]
      }
    }
  ]
}
