{
  "setup": {
    "mnemonic": "all all all all all all all all all all all all",
    "passphrase": ""
  },
  "tests": [
    {
      "description": "Missing owner with path",
      "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_hash": "3a7f09d3df4cf66a7399c2b05bfa234d5a29560c311fc5db4c490711"
                }
              ],
              "relays": [],
              "metadata": null
            }
          }
        ],
        "withdrawals": [],
        "auxiliary_data": null,
        "inputs": [
          {
            "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": {
        "error_message": "Invalid certificate"
      }
    },
    {
      "description": "Two owners with path",
      "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_path": "m/1852'/1815'/0'/2/0"
                }
              ],
              "relays": [],
              "metadata": null
            }
          }
        ],
        "withdrawals": [],
        "auxiliary_data": null,
        "inputs": [
          {
            "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": {
        "error_message": "Invalid certificate"
      }
    },
    {
      "description": "Invalid pool id",
      "parameters": {
        "protocol_magic": 764824073,
        "network_id": 1,
        "fee": 42,
        "ttl": 10,
        "validity_interval_start": null,
        "certificates": [
          {
            "type": 3,
            "pool_parameters": {
              "pool_id": "deadbeef",
              "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": [],
              "metadata": null
            }
          }
        ],
        "withdrawals": [],
        "auxiliary_data": null,
        "inputs": [
          {
            "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": {
        "error_message": "Invalid certificate"
      }
    },
    {
      "description": "Margin higher than 1",
      "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": 2,
                "denominator": 1
              },
              "reward_account": "stake1uya87zwnmax0v6nnn8ptqkl6ydx4522kpsc3l3wmf3yswygwx45el",
              "owners": [
                {
                  "staking_key_path": "m/1852'/1815'/0'/2/0"
                }
              ],
              "relays": [],
              "metadata": null
            }
          }
        ],
        "withdrawals": [],
        "auxiliary_data": null,
        "inputs": [
          {
            "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": {
        "error_message": "Invalid certificate"
      }
    },
    {
      "description": "Contains multiple pool registration certificates",
      "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": [],
              "metadata": null
            }
          },
          {
            "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": [],
              "metadata": null
            }
          }
        ],
        "withdrawals": [],
        "auxiliary_data": null,
        "inputs": [
          {
            "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": {
        "error_message": "Invalid tx signing request"
      }
    },
    {
      "description": "Contains a different certificate",
      "parameters": {
        "protocol_magic": 764824073,
        "network_id": 1,
        "fee": 42,
        "ttl": 10,
        "validity_interval_start": null,
        "certificates": [
          {
            "type": 0,
            "path": "m/1852'/1815'/0'/2/0"
          }
        ],
        "withdrawals": [],
        "auxiliary_data": null,
        "inputs": [
          {
            "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": {
        "error_message": "Invalid certificate"
      }
    },
    {
      "description": "Contains withdrawal",
      "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": [],
              "metadata": null
            }
          }
        ],
        "withdrawals": [
          {
            "path": "m/1852'/1815'/0'/2/0",
            "amount": "1000"
          }
        ],
        "auxiliary_data": null,
        "inputs": [
          {
            "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": {
        "error_message": "Invalid tx signing request"
      }
    },
    {
      "description": "All tx inputs must be external (without path)",
      "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": "m/1852'/1815'/0'/0/0",
            "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": {
        "error_message": "Stakepool registration transaction can only contain the pool owner witness request"
      }
    },
    {
      "description": "Pool reward address belongs to different network than the tx",
      "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": "stake1uya87zwnmax0v6nnn8ptqkl6ydx4522kpsc3l3wmf3yswygwx45el",
              "owners": [
                {
                  "staking_key_path": "m/1852'/1815'/0'/2/0"
                }
              ],
              "relays": []
            }
          }
        ],
        "withdrawals": [],
        "auxiliary_data": null,
        "inputs": [
          {
            "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": {
        "error_message": "ProcessError: Invalid address"
      }
    },
    {
      "description": "Pool reward address is a base address",
      "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": "addr1q84sh2j72ux0l03fxndjnhctdg7hcppsaejafsa84vh7lwgmcs5wgus8qt4atk45lvt4xfxpjtwfhdmvchdf2m3u3hlsd5tq5r",
              "owners": [
                {
                  "staking_key_path": "m/1852'/1815'/0'/2/0"
                }
              ],
              "relays": []
            }
          }
        ],
        "withdrawals": [],
        "auxiliary_data": null,
        "inputs": [
          {
            "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": {
        "error_message": "ProcessError: Invalid address"
      }
    },
    {
      "description": "Sample stake pool registration certificate with owner staking path account larger than 100",
      "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'/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": {
        "error_message": "Invalid pool owner staking path"
      }
    },
    {
      "description": "With ORDINARY_TRANSACTION signing mode",
      "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": "ORDINARY_TRANSACTION",
        "additional_witness_requests": [],
        "include_network_id": false,
        "tag_cbor_sets": false
      },
      "result": {
        "error_message": "Invalid certificate"
      }
    },
    {
      "description": "With MULTISIG_TRANSACTION signing mode",
      "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": "MULTISIG_TRANSACTION",
        "additional_witness_requests": [],
        "include_network_id": false,
        "tag_cbor_sets": false
      },
      "result": {
        "error_message": "Invalid certificate"
      }
    },
    {
      "description": "With PLUTUS_TRANSACTION signing mode",
      "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": "PLUTUS_TRANSACTION",
        "additional_witness_requests": [],
        "include_network_id": false,
        "tag_cbor_sets": false
      },
      "result": {
        "error_message": "Invalid certificate"
      }
    },
    {
      "description": "Sample stake pool registration certificate with 1854 additional witness request",
      "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": [
          {
            "path": "m/1854'/1815'/0'/0/0"
          }
        ],
        "include_network_id": false,
        "tag_cbor_sets": false
      },
      "result": {
        "error_message": "Stakepool registration transaction can only contain the pool owner witness request"
      }
    },
    {
      "description": "Sample stake pool registration certificate with 1855 additional witness request",
      "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": [
          {
            "path": "m/1855'/1815'/0'/0/0"
          }
        ],
        "include_network_id": false,
        "tag_cbor_sets": false
      },
      "result": {
        "error_message": "Stakepool registration transaction can only contain the pool owner witness request"
      }
    },
    {
      "description": "Sample stake pool registration certificate with token minting",
      "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": [
          {
            "policy_id": "95a292ffee938be03e9bae5657982a74e9014eb4960108c9e23a5b39",
            "tokens": [
              {
                "asset_name_bytes": "74652474436f696e",
                "mint_amount": "100"
              },
              {
                "asset_name_bytes": "75652474436f696e",
                "mint_amount": "-100"
              }
            ]
          },
          {
            "policy_id": "a5a292ffee938be03e9bae5657982a74e9014eb4960108c9e23a5b39",
            "tokens": [
              {
                "asset_name_bytes": "74652474436f696e",
                "mint_amount": "100"
              },
              {
                "asset_name_bytes": "75652474436f696e",
                "mint_amount": "-100"
              }
            ]
          }
        ],
        "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": [
          {
            "path": "m/1855'/1815'/0'/0/0"
          }
        ],
        "include_network_id": false,
        "tag_cbor_sets": false
      },
      "result": {
        "error_message": "Invalid tx signing request"
      }
    },
    {
      "description": "Sample stake pool registration certificate with change output",
      "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": [
          {
            "addressType": 0,
            "path": "m/1852'/1815'/0'/0/0",
            "stakingPath": "m/1852'/1815'/0'/2/0",
            "amount": "7120787"
          }
        ],
        "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": {
        "error_message": "Invalid output"
      }
    },
    {
      "description": "Sample stake pool registration certificate with output datum hash",
      "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": "addr1w9rhu54nz94k9l5v6d9rzfs47h7dv7xffcwkekuxcx3evnqpvuxu0",
            "amount": "1",
            "datum_hash": "3b40265111d8bb3c3c608d95b3a0bf83461ace32d79336579a1939b3aad1c0b7"
          }
        ],
        "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": {
        "error_message": "Invalid output"
      }
    },
    {
      "description": "Sample stake pool registration certificate with script data hash",
      "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": "addr1w9rhu54nz94k9l5v6d9rzfs47h7dv7xffcwkekuxcx3evnqpvuxu0",
            "amount": "1"
          }
        ],
        "mint": [],
        "script_data_hash": "3b40265111d8bb3c3c608d95b3a0bf83461ace32d79336579a1939b3aad1c0b7",
        "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": {
        "error_message": "Invalid tx signing request"
      }
    },
    {
      "description": "Sample stake pool registration certificate with collateral input",
      "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": "addr1w9rhu54nz94k9l5v6d9rzfs47h7dv7xffcwkekuxcx3evnqpvuxu0",
            "amount": "1"
          }
        ],
        "mint": [],
        "script_data_hash": null,
        "collateral_inputs": [
          {
            "path": null,
            "prev_hash": "3b40265111d8bb3c3c608d95b3a0bf83461ace32d79336579a1939b3aad1c0b7",
            "prev_index": 0
          }
        ],
        "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": {
        "error_message": "Invalid tx signing request"
      }
    },
    {
      "description": "Sample stake pool registration certificate with collateral return",
      "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": "addr1w9rhu54nz94k9l5v6d9rzfs47h7dv7xffcwkekuxcx3evnqpvuxu0",
            "amount": "1"
          }
        ],
        "mint": [],
        "script_data_hash": null,
        "collateral_inputs": [],
        "required_signers": [],
        "collateral_return": {
          "address": "addr1w9rhu54nz94k9l5v6d9rzfs47h7dv7xffcwkekuxcx3evnqpvuxu0",
          "amount": "10"
        },
        "total_collateral": null,
        "reference_inputs": [],
        "signing_mode": "POOL_REGISTRATION_AS_OWNER",
        "additional_witness_requests": [],
        "include_network_id": false,
        "tag_cbor_sets": false
      },
      "result": {
        "error_message": "Invalid tx signing request"
      }
    },
    {
      "description": "Sample stake pool registration certificate with total collateral",
      "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": "addr1w9rhu54nz94k9l5v6d9rzfs47h7dv7xffcwkekuxcx3evnqpvuxu0",
            "amount": "1"
          }
        ],
        "mint": [],
        "script_data_hash": null,
        "collateral_inputs": [],
        "required_signers": [],
        "collateral_return": null,
        "total_collateral": 1000,
        "reference_inputs": [],
        "signing_mode": "POOL_REGISTRATION_AS_OWNER",
        "additional_witness_requests": [],
        "include_network_id": false,
        "tag_cbor_sets": false
      },
      "result": {
        "error_message": "Invalid tx signing request"
      }
    },
    {
      "description": "Sample stake pool registration certificate with reference input",
      "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": "addr1w9rhu54nz94k9l5v6d9rzfs47h7dv7xffcwkekuxcx3evnqpvuxu0",
            "amount": "1"
          }
        ],
        "mint": [],
        "script_data_hash": null,
        "collateral_inputs": [],
        "required_signers": [],
        "collateral_return": null,
        "total_collateral": null,
        "reference_inputs": [
          {
            "prev_hash": "3b40265111d8bb3c3c608d95b3a0bf83461ace32d79336579a1939b3aad1c0b7",
            "prev_index": 0
          }
        ],
        "signing_mode": "POOL_REGISTRATION_AS_OWNER",
        "additional_witness_requests": [],
        "include_network_id": false,
        "tag_cbor_sets": false
      },
      "result": {
        "error_message": "Invalid tx signing request"
      }
    },
    {
      "description": "Sample stake pool registration certificate with required signer",
      "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": "addr1w9rhu54nz94k9l5v6d9rzfs47h7dv7xffcwkekuxcx3evnqpvuxu0",
            "amount": "1"
          }
        ],
        "mint": [],
        "script_data_hash": null,
        "collateral_inputs": [],
        "required_signers": [
          {
            "key_hash": "3a7f09d3df4cf66a7399c2b05bfa234d5a29560c311fc5db4c490711"
          }
        ],
        "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": {
        "error_message": "Invalid tx signing request"
      }
    },
    {
      "description": "Sample stake pool registration certificate with additional staking witness request not matching the owner path",
      "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": [
          {
            "path": "m/1852'/1815'/0'/2/1"
          }
        ],
        "include_network_id": false,
        "tag_cbor_sets": false
      },
      "result": {
        "error_message": "Stakepool registration transaction can only contain the pool owner witness request"
      }
    }
  ]
}
