{
  "nested": {
    "AlephiumGetAddress": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "show_display": {
          "type": "bool",
          "id": 2
        },
        "include_public_key": {
          "type": "bool",
          "id": 3
        },
        "target_group": {
          "type": "uint32",
          "id": 4
        }
      }
    },
    "AlephiumAddress": {
      "fields": {
        "address": {
          "rule": "required",
          "type": "string",
          "id": 1
        },
        "public_key": {
          "type": "bytes",
          "id": 2
        },
        "derived_path": {
          "rule": "repeated",
          "type": "uint32",
          "id": 3,
          "options": {
            "packed": false
          }
        }
      }
    },
    "AlephiumSignTx": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "data_initial_chunk": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        },
        "data_length": {
          "type": "uint32",
          "id": 3
        }
      }
    },
    "AlephiumSignedTx": {
      "fields": {
        "signature": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        },
        "address": {
          "rule": "required",
          "type": "string",
          "id": 2
        }
      }
    },
    "AlephiumTxRequest": {
      "fields": {
        "data_length": {
          "type": "uint32",
          "id": 1
        },
        "public_key": {
          "type": "bytes",
          "id": 2
        },
        "signature": {
          "type": "bytes",
          "id": 3
        }
      }
    },
    "AlephiumTxAck": {
      "fields": {
        "data_chunk": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        }
      }
    },
    "AlephiumBytecodeRequest": {
      "fields": {
        "data_length": {
          "type": "uint32",
          "id": 1
        },
        "public_key": {
          "type": "bytes",
          "id": 2
        },
        "signature": {
          "type": "bytes",
          "id": 3
        }
      }
    },
    "AlephiumBytecodeAck": {
      "fields": {
        "bytecode_data": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        }
      }
    },
    "AlephiumSignMessage": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "message": {
          "type": "bytes",
          "id": 2
        },
        "message_type": {
          "type": "bytes",
          "id": 3
        }
      }
    },
    "AlephiumMessageSignature": {
      "fields": {
        "signature": {
          "type": "bytes",
          "id": 1
        },
        "address": {
          "type": "string",
          "id": 2
        }
      }
    },
    "AlgorandGetAddress": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "show_display": {
          "type": "bool",
          "id": 3
        }
      }
    },
    "AlgorandAddress": {
      "fields": {
        "address": {
          "type": "string",
          "id": 1
        }
      }
    },
    "AlgorandSignTx": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "raw_tx": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        }
      }
    },
    "AlgorandSignedTx": {
      "fields": {
        "signature": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        }
      }
    },
    "AptosGetAddress": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "show_display": {
          "type": "bool",
          "id": 2
        }
      }
    },
    "AptosAddress": {
      "fields": {
        "address": {
          "type": "string",
          "id": 1
        }
      }
    },
    "AptosSignTx": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "raw_tx": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        },
        "tx_type": {
          "type": "AptosTransactionType",
          "id": 3,
          "options": {
            "default": "STANDARD"
          }
        }
      },
      "nested": {
        "AptosTransactionType": {
          "values": {
            "STANDARD": 0,
            "WITH_DATA": 1
          }
        }
      }
    },
    "AptosSignedTx": {
      "fields": {
        "public_key": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        },
        "signature": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        }
      }
    },
    "AptosSignMessage": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "payload": {
          "rule": "required",
          "type": "AptosMessagePayload",
          "id": 2
        }
      },
      "nested": {
        "AptosMessagePayload": {
          "fields": {
            "address": {
              "type": "string",
              "id": 2
            },
            "chain_id": {
              "type": "string",
              "id": 3
            },
            "application": {
              "type": "string",
              "id": 4
            },
            "nonce": {
              "rule": "required",
              "type": "string",
              "id": 5
            },
            "message": {
              "rule": "required",
              "type": "string",
              "id": 6
            }
          }
        }
      }
    },
    "AptosMessageSignature": {
      "fields": {
        "signature": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        },
        "address": {
          "rule": "required",
          "type": "string",
          "id": 2
        }
      }
    },
    "AptosSignSIWAMessage": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "siwa_payload": {
          "rule": "required",
          "type": "string",
          "id": 2
        }
      }
    },
    "BenfenGetAddress": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "show_display": {
          "type": "bool",
          "id": 2
        }
      }
    },
    "BenfenAddress": {
      "fields": {
        "address": {
          "type": "string",
          "id": 1
        }
      }
    },
    "BenfenSignTx": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "raw_tx": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        },
        "data_initial_chunk": {
          "type": "bytes",
          "id": 3,
          "options": {
            "default": ""
          }
        },
        "coin_type": {
          "type": "bytes",
          "id": 4
        },
        "data_length": {
          "type": "uint32",
          "id": 5
        }
      }
    },
    "BenfenSignedTx": {
      "fields": {
        "public_key": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        },
        "signature": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        }
      }
    },
    "BenfenTxRequest": {
      "fields": {
        "data_length": {
          "type": "uint32",
          "id": 1
        },
        "public_key": {
          "type": "bytes",
          "id": 2
        },
        "signature": {
          "type": "bytes",
          "id": 3
        }
      }
    },
    "BenfenTxAck": {
      "fields": {
        "data_chunk": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        }
      }
    },
    "BenfenSignMessage": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "message": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        }
      }
    },
    "BenfenMessageSignature": {
      "fields": {
        "signature": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        },
        "address": {
          "rule": "required",
          "type": "string",
          "id": 2
        }
      }
    },
    "BinanceGetAddress": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "show_display": {
          "type": "bool",
          "id": 2
        }
      }
    },
    "BinanceAddress": {
      "fields": {
        "address": {
          "rule": "required",
          "type": "string",
          "id": 1
        }
      }
    },
    "BinanceGetPublicKey": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "show_display": {
          "type": "bool",
          "id": 2
        }
      }
    },
    "BinancePublicKey": {
      "fields": {
        "public_key": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        }
      }
    },
    "BinanceSignTx": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "msg_count": {
          "type": "uint32",
          "id": 2
        },
        "account_number": {
          "type": "sint64",
          "id": 3
        },
        "chain_id": {
          "type": "string",
          "id": 4
        },
        "memo": {
          "type": "string",
          "id": 5
        },
        "sequence": {
          "type": "sint64",
          "id": 6
        },
        "source": {
          "type": "sint64",
          "id": 7
        }
      }
    },
    "BinanceTxRequest": {
      "fields": {}
    },
    "BinanceTransferMsg": {
      "fields": {
        "inputs": {
          "rule": "repeated",
          "type": "BinanceInputOutput",
          "id": 1
        },
        "outputs": {
          "rule": "repeated",
          "type": "BinanceInputOutput",
          "id": 2
        }
      },
      "nested": {
        "BinanceInputOutput": {
          "fields": {
            "address": {
              "type": "string",
              "id": 1
            },
            "coins": {
              "rule": "repeated",
              "type": "BinanceCoin",
              "id": 2
            }
          }
        },
        "BinanceCoin": {
          "fields": {
            "amount": {
              "type": "sint64",
              "id": 1
            },
            "denom": {
              "type": "string",
              "id": 2
            }
          }
        }
      }
    },
    "BinanceOrderMsg": {
      "fields": {
        "id": {
          "type": "string",
          "id": 1
        },
        "ordertype": {
          "type": "BinanceOrderType",
          "id": 2
        },
        "price": {
          "type": "sint64",
          "id": 3
        },
        "quantity": {
          "type": "sint64",
          "id": 4
        },
        "sender": {
          "type": "string",
          "id": 5
        },
        "side": {
          "type": "BinanceOrderSide",
          "id": 6
        },
        "symbol": {
          "type": "string",
          "id": 7
        },
        "timeinforce": {
          "type": "BinanceTimeInForce",
          "id": 8
        }
      },
      "nested": {
        "BinanceOrderType": {
          "values": {
            "OT_UNKNOWN": 0,
            "MARKET": 1,
            "LIMIT": 2,
            "OT_RESERVED": 3
          }
        },
        "BinanceOrderSide": {
          "values": {
            "SIDE_UNKNOWN": 0,
            "BUY": 1,
            "SELL": 2
          }
        },
        "BinanceTimeInForce": {
          "values": {
            "TIF_UNKNOWN": 0,
            "GTE": 1,
            "TIF_RESERVED": 2,
            "IOC": 3
          }
        }
      }
    },
    "BinanceCancelMsg": {
      "fields": {
        "refid": {
          "type": "string",
          "id": 1
        },
        "sender": {
          "type": "string",
          "id": 2
        },
        "symbol": {
          "type": "string",
          "id": 3
        }
      }
    },
    "BinanceSignedTx": {
      "fields": {
        "signature": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        },
        "public_key": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        }
      }
    },
    "InputScriptType": {
      "values": {
        "SPENDADDRESS": 0,
        "SPENDMULTISIG": 1,
        "EXTERNAL": 2,
        "SPENDWITNESS": 3,
        "SPENDP2SHWITNESS": 4,
        "SPENDTAPROOT": 5
      }
    },
    "OutputScriptType": {
      "values": {
        "PAYTOADDRESS": 0,
        "PAYTOSCRIPTHASH": 1,
        "PAYTOMULTISIG": 2,
        "PAYTOOPRETURN": 3,
        "PAYTOWITNESS": 4,
        "PAYTOP2SHWITNESS": 5,
        "PAYTOTAPROOT": 6
      }
    },
    "DecredStakingSpendType": {
      "values": {
        "SSGen": 0,
        "SSRTX": 1
      }
    },
    "AmountUnit": {
      "values": {
        "BITCOIN": 0,
        "MILLIBITCOIN": 1,
        "MICROBITCOIN": 2,
        "SATOSHI": 3
      }
    },
    "MultisigRedeemScriptType": {
      "fields": {
        "pubkeys": {
          "rule": "repeated",
          "type": "HDNodePathType",
          "id": 1
        },
        "signatures": {
          "rule": "repeated",
          "type": "bytes",
          "id": 2
        },
        "m": {
          "rule": "required",
          "type": "uint32",
          "id": 3
        },
        "nodes": {
          "rule": "repeated",
          "type": "HDNodeType",
          "id": 4
        },
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 5,
          "options": {
            "packed": false
          }
        }
      },
      "nested": {
        "HDNodePathType": {
          "fields": {
            "node": {
              "rule": "required",
              "type": "HDNodeType",
              "id": 1
            },
            "address_n": {
              "rule": "repeated",
              "type": "uint32",
              "id": 2,
              "options": {
                "packed": false
              }
            }
          }
        }
      }
    },
    "GetPublicKey": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "ecdsa_curve_name": {
          "type": "string",
          "id": 2
        },
        "show_display": {
          "type": "bool",
          "id": 3
        },
        "coin_name": {
          "type": "string",
          "id": 4,
          "options": {
            "default": "Bitcoin"
          }
        },
        "script_type": {
          "type": "InputScriptType",
          "id": 5,
          "options": {
            "default": "SPENDADDRESS"
          }
        },
        "ignore_xpub_magic": {
          "type": "bool",
          "id": 6
        }
      }
    },
    "PublicKey": {
      "fields": {
        "node": {
          "rule": "required",
          "type": "HDNodeType",
          "id": 1
        },
        "xpub": {
          "rule": "required",
          "type": "string",
          "id": 2
        },
        "root_fingerprint": {
          "type": "uint32",
          "id": 3
        }
      }
    },
    "GetAddress": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "coin_name": {
          "type": "string",
          "id": 2,
          "options": {
            "default": "Bitcoin"
          }
        },
        "show_display": {
          "type": "bool",
          "id": 3
        },
        "multisig": {
          "type": "MultisigRedeemScriptType",
          "id": 4
        },
        "script_type": {
          "type": "InputScriptType",
          "id": 5,
          "options": {
            "default": "SPENDADDRESS"
          }
        },
        "ignore_xpub_magic": {
          "type": "bool",
          "id": 6
        }
      }
    },
    "Address": {
      "fields": {
        "address": {
          "rule": "required",
          "type": "string",
          "id": 1
        }
      }
    },
    "GetOwnershipId": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "coin_name": {
          "type": "string",
          "id": 2,
          "options": {
            "default": "Bitcoin"
          }
        },
        "multisig": {
          "type": "MultisigRedeemScriptType",
          "id": 3
        },
        "script_type": {
          "type": "InputScriptType",
          "id": 4,
          "options": {
            "default": "SPENDADDRESS"
          }
        }
      }
    },
    "OwnershipId": {
      "fields": {
        "ownership_id": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        }
      }
    },
    "SignMessage": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "message": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        },
        "coin_name": {
          "type": "string",
          "id": 3,
          "options": {
            "default": "Bitcoin"
          }
        },
        "script_type": {
          "type": "InputScriptType",
          "id": 4,
          "options": {
            "default": "SPENDADDRESS"
          }
        },
        "no_script_type": {
          "type": "bool",
          "id": 5
        },
        "is_bip322_simple": {
          "type": "bool",
          "id": 10,
          "options": {
            "default": false
          }
        }
      }
    },
    "MessageSignature": {
      "fields": {
        "address": {
          "rule": "required",
          "type": "string",
          "id": 1
        },
        "signature": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        }
      }
    },
    "VerifyMessage": {
      "fields": {
        "address": {
          "rule": "required",
          "type": "string",
          "id": 1
        },
        "signature": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        },
        "message": {
          "rule": "required",
          "type": "bytes",
          "id": 3
        },
        "coin_name": {
          "type": "string",
          "id": 4,
          "options": {
            "default": "Bitcoin"
          }
        }
      }
    },
    "SignTx": {
      "fields": {
        "outputs_count": {
          "rule": "required",
          "type": "uint32",
          "id": 1
        },
        "inputs_count": {
          "rule": "required",
          "type": "uint32",
          "id": 2
        },
        "coin_name": {
          "type": "string",
          "id": 3,
          "options": {
            "default": "Bitcoin"
          }
        },
        "version": {
          "type": "uint32",
          "id": 4,
          "options": {
            "default": 1
          }
        },
        "lock_time": {
          "type": "uint32",
          "id": 5,
          "options": {
            "default": 0
          }
        },
        "expiry": {
          "type": "uint32",
          "id": 6
        },
        "overwintered": {
          "type": "bool",
          "id": 7,
          "options": {
            "deprecated": true
          }
        },
        "version_group_id": {
          "type": "uint32",
          "id": 8
        },
        "timestamp": {
          "type": "uint32",
          "id": 9
        },
        "branch_id": {
          "type": "uint32",
          "id": 10
        },
        "amount_unit": {
          "type": "AmountUnit",
          "id": 11,
          "options": {
            "default": "BITCOIN"
          }
        },
        "decred_staking_ticket": {
          "type": "bool",
          "id": 12,
          "options": {
            "default": false
          }
        }
      }
    },
    "TxRequest": {
      "fields": {
        "request_type": {
          "type": "RequestType",
          "id": 1
        },
        "details": {
          "type": "TxRequestDetailsType",
          "id": 2
        },
        "serialized": {
          "type": "TxRequestSerializedType",
          "id": 3
        }
      },
      "nested": {
        "RequestType": {
          "values": {
            "TXINPUT": 0,
            "TXOUTPUT": 1,
            "TXMETA": 2,
            "TXFINISHED": 3,
            "TXEXTRADATA": 4,
            "TXORIGINPUT": 5,
            "TXORIGOUTPUT": 6
          }
        },
        "TxRequestDetailsType": {
          "fields": {
            "request_index": {
              "type": "uint32",
              "id": 1
            },
            "tx_hash": {
              "type": "bytes",
              "id": 2
            },
            "extra_data_len": {
              "type": "uint32",
              "id": 3
            },
            "extra_data_offset": {
              "type": "uint32",
              "id": 4
            }
          }
        },
        "TxRequestSerializedType": {
          "fields": {
            "signature_index": {
              "type": "uint32",
              "id": 1
            },
            "signature": {
              "type": "bytes",
              "id": 2
            },
            "serialized_tx": {
              "type": "bytes",
              "id": 3
            }
          }
        }
      }
    },
    "TxAck": {
      "options": {
        "deprecated": true
      },
      "fields": {
        "tx": {
          "type": "TransactionType",
          "id": 1
        }
      },
      "nested": {
        "TransactionType": {
          "fields": {
            "version": {
              "type": "uint32",
              "id": 1
            },
            "inputs": {
              "rule": "repeated",
              "type": "TxInputType",
              "id": 2
            },
            "bin_outputs": {
              "rule": "repeated",
              "type": "TxOutputBinType",
              "id": 3
            },
            "lock_time": {
              "type": "uint32",
              "id": 4
            },
            "outputs": {
              "rule": "repeated",
              "type": "TxOutputType",
              "id": 5
            },
            "inputs_cnt": {
              "type": "uint32",
              "id": 6
            },
            "outputs_cnt": {
              "type": "uint32",
              "id": 7
            },
            "extra_data": {
              "type": "bytes",
              "id": 8
            },
            "extra_data_len": {
              "type": "uint32",
              "id": 9
            },
            "expiry": {
              "type": "uint32",
              "id": 10
            },
            "overwintered": {
              "type": "bool",
              "id": 11,
              "options": {
                "deprecated": true
              }
            },
            "version_group_id": {
              "type": "uint32",
              "id": 12
            },
            "timestamp": {
              "type": "uint32",
              "id": 13
            },
            "branch_id": {
              "type": "uint32",
              "id": 14
            }
          },
          "nested": {
            "TxInputType": {
              "fields": {
                "address_n": {
                  "rule": "repeated",
                  "type": "uint32",
                  "id": 1,
                  "options": {
                    "packed": false
                  }
                },
                "prev_hash": {
                  "rule": "required",
                  "type": "bytes",
                  "id": 2
                },
                "prev_index": {
                  "rule": "required",
                  "type": "uint32",
                  "id": 3
                },
                "script_sig": {
                  "type": "bytes",
                  "id": 4
                },
                "sequence": {
                  "type": "uint32",
                  "id": 5,
                  "options": {
                    "default": 4294967295
                  }
                },
                "script_type": {
                  "type": "InputScriptType",
                  "id": 6,
                  "options": {
                    "default": "SPENDADDRESS"
                  }
                },
                "multisig": {
                  "type": "MultisigRedeemScriptType",
                  "id": 7
                },
                "amount": {
                  "type": "uint64",
                  "id": 8
                },
                "decred_tree": {
                  "type": "uint32",
                  "id": 9
                },
                "witness": {
                  "type": "bytes",
                  "id": 13
                },
                "ownership_proof": {
                  "type": "bytes",
                  "id": 14
                },
                "commitment_data": {
                  "type": "bytes",
                  "id": 15
                },
                "orig_hash": {
                  "type": "bytes",
                  "id": 16
                },
                "orig_index": {
                  "type": "uint32",
                  "id": 17
                },
                "decred_staking_spend": {
                  "type": "DecredStakingSpendType",
                  "id": 18
                },
                "script_pubkey": {
                  "type": "bytes",
                  "id": 19
                }
              }
            },
            "TxOutputBinType": {
              "fields": {
                "amount": {
                  "rule": "required",
                  "type": "uint64",
                  "id": 1
                },
                "script_pubkey": {
                  "rule": "required",
                  "type": "bytes",
                  "id": 2
                },
                "decred_script_version": {
                  "type": "uint32",
                  "id": 3
                }
              }
            },
            "TxOutputType": {
              "fields": {
                "address": {
                  "type": "string",
                  "id": 1
                },
                "address_n": {
                  "rule": "repeated",
                  "type": "uint32",
                  "id": 2,
                  "options": {
                    "packed": false
                  }
                },
                "amount": {
                  "rule": "required",
                  "type": "uint64",
                  "id": 3
                },
                "script_type": {
                  "type": "OutputScriptType",
                  "id": 4,
                  "options": {
                    "default": "PAYTOADDRESS"
                  }
                },
                "multisig": {
                  "type": "MultisigRedeemScriptType",
                  "id": 5
                },
                "op_return_data": {
                  "type": "bytes",
                  "id": 6
                },
                "orig_hash": {
                  "type": "bytes",
                  "id": 10
                },
                "orig_index": {
                  "type": "uint32",
                  "id": 11
                }
              }
            }
          }
        }
      }
    },
    "TxInput": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "prev_hash": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        },
        "prev_index": {
          "rule": "required",
          "type": "uint32",
          "id": 3
        },
        "script_sig": {
          "type": "bytes",
          "id": 4
        },
        "sequence": {
          "type": "uint32",
          "id": 5,
          "options": {
            "default": 4294967295
          }
        },
        "script_type": {
          "type": "InputScriptType",
          "id": 6,
          "options": {
            "default": "SPENDADDRESS"
          }
        },
        "multisig": {
          "type": "MultisigRedeemScriptType",
          "id": 7
        },
        "amount": {
          "rule": "required",
          "type": "uint64",
          "id": 8
        },
        "decred_tree": {
          "type": "uint32",
          "id": 9
        },
        "witness": {
          "type": "bytes",
          "id": 13
        },
        "ownership_proof": {
          "type": "bytes",
          "id": 14
        },
        "commitment_data": {
          "type": "bytes",
          "id": 15
        },
        "orig_hash": {
          "type": "bytes",
          "id": 16
        },
        "orig_index": {
          "type": "uint32",
          "id": 17
        },
        "decred_staking_spend": {
          "type": "DecredStakingSpendType",
          "id": 18
        },
        "script_pubkey": {
          "type": "bytes",
          "id": 19
        }
      }
    },
    "TxOutput": {
      "fields": {
        "address": {
          "type": "string",
          "id": 1
        },
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 2,
          "options": {
            "packed": false
          }
        },
        "amount": {
          "rule": "required",
          "type": "uint64",
          "id": 3
        },
        "script_type": {
          "type": "OutputScriptType",
          "id": 4,
          "options": {
            "default": "PAYTOADDRESS"
          }
        },
        "multisig": {
          "type": "MultisigRedeemScriptType",
          "id": 5
        },
        "op_return_data": {
          "type": "bytes",
          "id": 6
        },
        "orig_hash": {
          "type": "bytes",
          "id": 10
        },
        "orig_index": {
          "type": "uint32",
          "id": 11
        }
      }
    },
    "PrevTx": {
      "fields": {
        "version": {
          "rule": "required",
          "type": "uint32",
          "id": 1
        },
        "lock_time": {
          "rule": "required",
          "type": "uint32",
          "id": 4
        },
        "inputs_count": {
          "rule": "required",
          "type": "uint32",
          "id": 6
        },
        "outputs_count": {
          "rule": "required",
          "type": "uint32",
          "id": 7
        },
        "extra_data_len": {
          "type": "uint32",
          "id": 9,
          "options": {
            "default": 0
          }
        },
        "expiry": {
          "type": "uint32",
          "id": 10
        },
        "version_group_id": {
          "type": "uint32",
          "id": 12
        },
        "timestamp": {
          "type": "uint32",
          "id": 13
        },
        "branch_id": {
          "type": "uint32",
          "id": 14
        }
      }
    },
    "PrevInput": {
      "fields": {
        "prev_hash": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        },
        "prev_index": {
          "rule": "required",
          "type": "uint32",
          "id": 3
        },
        "script_sig": {
          "rule": "required",
          "type": "bytes",
          "id": 4
        },
        "sequence": {
          "rule": "required",
          "type": "uint32",
          "id": 5
        },
        "decred_tree": {
          "type": "uint32",
          "id": 9
        }
      }
    },
    "PrevOutput": {
      "fields": {
        "amount": {
          "rule": "required",
          "type": "uint64",
          "id": 1
        },
        "script_pubkey": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        },
        "decred_script_version": {
          "type": "uint32",
          "id": 3
        }
      }
    },
    "TxAckInput": {
      "options": {
        "(wire_type)": 22
      },
      "fields": {
        "tx": {
          "rule": "required",
          "type": "TxAckInputWrapper",
          "id": 1
        }
      },
      "nested": {
        "TxAckInputWrapper": {
          "fields": {
            "input": {
              "rule": "required",
              "type": "TxInput",
              "id": 2
            }
          }
        }
      }
    },
    "TxAckOutput": {
      "options": {
        "(wire_type)": 22
      },
      "fields": {
        "tx": {
          "rule": "required",
          "type": "TxAckOutputWrapper",
          "id": 1
        }
      },
      "nested": {
        "TxAckOutputWrapper": {
          "fields": {
            "output": {
              "rule": "required",
              "type": "TxOutput",
              "id": 5
            }
          }
        }
      }
    },
    "TxAckPrevMeta": {
      "options": {
        "(wire_type)": 22
      },
      "fields": {
        "tx": {
          "rule": "required",
          "type": "PrevTx",
          "id": 1
        }
      }
    },
    "TxAckPrevInput": {
      "options": {
        "(wire_type)": 22
      },
      "fields": {
        "tx": {
          "rule": "required",
          "type": "TxAckPrevInputWrapper",
          "id": 1
        }
      },
      "nested": {
        "TxAckPrevInputWrapper": {
          "fields": {
            "input": {
              "rule": "required",
              "type": "PrevInput",
              "id": 2
            }
          }
        }
      }
    },
    "TxAckPrevOutput": {
      "options": {
        "(wire_type)": 22
      },
      "fields": {
        "tx": {
          "rule": "required",
          "type": "TxAckPrevOutputWrapper",
          "id": 1
        }
      },
      "nested": {
        "TxAckPrevOutputWrapper": {
          "fields": {
            "output": {
              "rule": "required",
              "type": "PrevOutput",
              "id": 3
            }
          }
        }
      }
    },
    "TxAckPrevExtraData": {
      "options": {
        "(wire_type)": 22
      },
      "fields": {
        "tx": {
          "rule": "required",
          "type": "TxAckPrevExtraDataWrapper",
          "id": 1
        }
      },
      "nested": {
        "TxAckPrevExtraDataWrapper": {
          "fields": {
            "extra_data_chunk": {
              "rule": "required",
              "type": "bytes",
              "id": 8
            }
          }
        }
      }
    },
    "GetOwnershipProof": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "coin_name": {
          "type": "string",
          "id": 2,
          "options": {
            "default": "Bitcoin"
          }
        },
        "script_type": {
          "type": "InputScriptType",
          "id": 3,
          "options": {
            "default": "SPENDWITNESS"
          }
        },
        "multisig": {
          "type": "MultisigRedeemScriptType",
          "id": 4
        },
        "user_confirmation": {
          "type": "bool",
          "id": 5,
          "options": {
            "default": false
          }
        },
        "ownership_ids": {
          "rule": "repeated",
          "type": "bytes",
          "id": 6
        },
        "commitment_data": {
          "type": "bytes",
          "id": 7,
          "options": {
            "default": ""
          }
        }
      }
    },
    "OwnershipProof": {
      "fields": {
        "ownership_proof": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        },
        "signature": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        }
      }
    },
    "AuthorizeCoinJoin": {
      "options": {
        "(unstable)": true
      },
      "fields": {
        "coordinator": {
          "rule": "required",
          "type": "string",
          "id": 1
        },
        "max_total_fee": {
          "rule": "required",
          "type": "uint64",
          "id": 2
        },
        "fee_per_anonymity": {
          "type": "uint32",
          "id": 3,
          "options": {
            "default": 0
          }
        },
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 4,
          "options": {
            "packed": false
          }
        },
        "coin_name": {
          "type": "string",
          "id": 5,
          "options": {
            "default": "Bitcoin"
          }
        },
        "script_type": {
          "type": "InputScriptType",
          "id": 6,
          "options": {
            "default": "SPENDADDRESS"
          }
        },
        "amount_unit": {
          "type": "AmountUnit",
          "id": 11,
          "options": {
            "default": "BITCOIN"
          }
        }
      }
    },
    "GetPublicKeyMultiple": {
      "fields": {
        "addresses": {
          "rule": "repeated",
          "type": "BIP32Address",
          "id": 1
        },
        "ecdsa_curve_name": {
          "type": "string",
          "id": 2
        },
        "show_display": {
          "type": "bool",
          "id": 3
        },
        "coin_name": {
          "type": "string",
          "id": 4,
          "options": {
            "default": "Bitcoin"
          }
        },
        "script_type": {
          "type": "InputScriptType",
          "id": 5,
          "options": {
            "default": "SPENDADDRESS"
          }
        },
        "ignore_xpub_magic": {
          "type": "bool",
          "id": 6
        }
      },
      "nested": {
        "BIP32Address": {
          "fields": {
            "address_n": {
              "rule": "repeated",
              "type": "uint32",
              "id": 1,
              "options": {
                "packed": false
              }
            }
          }
        }
      }
    },
    "PublicKeyMultiple": {
      "fields": {
        "xpubs": {
          "rule": "repeated",
          "type": "string",
          "id": 1
        }
      }
    },
    "SignPsbt": {
      "fields": {
        "psbt": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        },
        "coin_name": {
          "type": "string",
          "id": 2,
          "options": {
            "default": "Bitcoin"
          }
        }
      }
    },
    "SignedPsbt": {
      "fields": {
        "psbt": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        }
      }
    },
    "FirmwareErase": {
      "fields": {
        "length": {
          "type": "uint32",
          "id": 1
        }
      }
    },
    "FirmwareRequest": {
      "fields": {
        "offset": {
          "type": "uint32",
          "id": 1
        },
        "length": {
          "type": "uint32",
          "id": 2
        }
      }
    },
    "FirmwareUpload": {
      "fields": {
        "payload": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        },
        "hash": {
          "type": "bytes",
          "id": 2
        }
      }
    },
    "SelfTest": {
      "fields": {
        "payload": {
          "type": "bytes",
          "id": 1
        }
      }
    },
    "FirmwareErase_ex": {
      "fields": {
        "length": {
          "type": "uint32",
          "id": 1
        }
      }
    },
    "RebootType": {
      "values": {
        "Normal": 0,
        "Boardloader": 1,
        "BootLoader": 2
      }
    },
    "Reboot": {
      "fields": {
        "reboot_type": {
          "rule": "required",
          "type": "RebootType",
          "id": 1
        }
      }
    },
    "FirmwareUpdateEmmc": {
      "fields": {
        "path": {
          "rule": "required",
          "type": "string",
          "id": 1
        },
        "reboot_on_success": {
          "type": "bool",
          "id": 2
        }
      }
    },
    "UpgradeFileHeader": {
      "fields": {
        "data": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        }
      }
    },
    "CardanoDerivationType": {
      "values": {
        "LEDGER": 0,
        "ICARUS": 1,
        "ICARUS_TREZOR": 2
      }
    },
    "CardanoAddressType": {
      "values": {
        "BASE": 0,
        "BASE_SCRIPT_KEY": 1,
        "BASE_KEY_SCRIPT": 2,
        "BASE_SCRIPT_SCRIPT": 3,
        "POINTER": 4,
        "POINTER_SCRIPT": 5,
        "ENTERPRISE": 6,
        "ENTERPRISE_SCRIPT": 7,
        "BYRON": 8,
        "REWARD": 14,
        "REWARD_SCRIPT": 15
      }
    },
    "CardanoNativeScriptType": {
      "values": {
        "PUB_KEY": 0,
        "ALL": 1,
        "ANY": 2,
        "N_OF_K": 3,
        "INVALID_BEFORE": 4,
        "INVALID_HEREAFTER": 5
      }
    },
    "CardanoNativeScriptHashDisplayFormat": {
      "values": {
        "HIDE": 0,
        "BECH32": 1,
        "POLICY_ID": 2
      }
    },
    "CardanoTxOutputSerializationFormat": {
      "values": {
        "ARRAY_LEGACY": 0,
        "MAP_BABBAGE": 1
      }
    },
    "CardanoCertificateType": {
      "values": {
        "STAKE_REGISTRATION": 0,
        "STAKE_DEREGISTRATION": 1,
        "STAKE_DELEGATION": 2,
        "STAKE_POOL_REGISTRATION": 3,
        "STAKE_REGISTRATION_CONWAY": 7,
        "STAKE_DEREGISTRATION_CONWAY": 8,
        "VOTE_DELEGATION": 9
      }
    },
    "CardanoDRepType": {
      "values": {
        "KEY_HASH": 0,
        "SCRIPT_HASH": 1,
        "ABSTAIN": 2,
        "NO_CONFIDENCE": 3
      }
    },
    "CardanoPoolRelayType": {
      "values": {
        "SINGLE_HOST_IP": 0,
        "SINGLE_HOST_NAME": 1,
        "MULTIPLE_HOST_NAME": 2
      }
    },
    "CardanoTxAuxiliaryDataSupplementType": {
      "values": {
        "NONE": 0,
        "CVOTE_REGISTRATION_SIGNATURE": 1
      }
    },
    "CardanoCVoteRegistrationFormat": {
      "values": {
        "CIP15": 0,
        "CIP36": 1
      }
    },
    "CardanoTxSigningMode": {
      "values": {
        "ORDINARY_TRANSACTION": 0,
        "POOL_REGISTRATION_AS_OWNER": 1,
        "MULTISIG_TRANSACTION": 2,
        "PLUTUS_TRANSACTION": 3
      }
    },
    "CardanoTxWitnessType": {
      "values": {
        "BYRON_WITNESS": 0,
        "SHELLEY_WITNESS": 1
      }
    },
    "CardanoBlockchainPointerType": {
      "fields": {
        "block_index": {
          "rule": "required",
          "type": "uint32",
          "id": 1
        },
        "tx_index": {
          "rule": "required",
          "type": "uint32",
          "id": 2
        },
        "certificate_index": {
          "rule": "required",
          "type": "uint32",
          "id": 3
        }
      }
    },
    "CardanoNativeScript": {
      "fields": {
        "type": {
          "rule": "required",
          "type": "CardanoNativeScriptType",
          "id": 1
        },
        "scripts": {
          "rule": "repeated",
          "type": "CardanoNativeScript",
          "id": 2
        },
        "key_hash": {
          "type": "bytes",
          "id": 3
        },
        "key_path": {
          "rule": "repeated",
          "type": "uint32",
          "id": 4,
          "options": {
            "packed": false
          }
        },
        "required_signatures_count": {
          "type": "uint32",
          "id": 5
        },
        "invalid_before": {
          "type": "uint64",
          "id": 6
        },
        "invalid_hereafter": {
          "type": "uint64",
          "id": 7
        }
      }
    },
    "CardanoGetNativeScriptHash": {
      "fields": {
        "script": {
          "rule": "required",
          "type": "CardanoNativeScript",
          "id": 1
        },
        "display_format": {
          "rule": "required",
          "type": "CardanoNativeScriptHashDisplayFormat",
          "id": 2
        },
        "derivation_type": {
          "rule": "required",
          "type": "CardanoDerivationType",
          "id": 3
        }
      }
    },
    "CardanoNativeScriptHash": {
      "fields": {
        "script_hash": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        }
      }
    },
    "CardanoAddressParametersType": {
      "fields": {
        "address_type": {
          "rule": "required",
          "type": "CardanoAddressType",
          "id": 1
        },
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 2,
          "options": {
            "packed": false
          }
        },
        "address_n_staking": {
          "rule": "repeated",
          "type": "uint32",
          "id": 3,
          "options": {
            "packed": false
          }
        },
        "staking_key_hash": {
          "type": "bytes",
          "id": 4
        },
        "certificate_pointer": {
          "type": "CardanoBlockchainPointerType",
          "id": 5
        },
        "script_payment_hash": {
          "type": "bytes",
          "id": 6
        },
        "script_staking_hash": {
          "type": "bytes",
          "id": 7
        }
      }
    },
    "CardanoGetAddress": {
      "fields": {
        "show_display": {
          "type": "bool",
          "id": 2,
          "options": {
            "default": false
          }
        },
        "protocol_magic": {
          "rule": "required",
          "type": "uint32",
          "id": 3
        },
        "network_id": {
          "rule": "required",
          "type": "uint32",
          "id": 4
        },
        "address_parameters": {
          "rule": "required",
          "type": "CardanoAddressParametersType",
          "id": 5
        },
        "derivation_type": {
          "rule": "required",
          "type": "CardanoDerivationType",
          "id": 6
        },
        "chunkify": {
          "type": "bool",
          "id": 7
        }
      }
    },
    "CardanoAddress": {
      "fields": {
        "address": {
          "rule": "required",
          "type": "string",
          "id": 1
        }
      }
    },
    "CardanoGetPublicKey": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "show_display": {
          "type": "bool",
          "id": 2
        },
        "derivation_type": {
          "rule": "required",
          "type": "CardanoDerivationType",
          "id": 3
        }
      }
    },
    "CardanoPublicKey": {
      "fields": {
        "xpub": {
          "rule": "required",
          "type": "string",
          "id": 1
        },
        "node": {
          "rule": "required",
          "type": "HDNodeType",
          "id": 2
        }
      }
    },
    "CardanoSignTxInit": {
      "fields": {
        "signing_mode": {
          "rule": "required",
          "type": "CardanoTxSigningMode",
          "id": 1
        },
        "protocol_magic": {
          "rule": "required",
          "type": "uint32",
          "id": 2
        },
        "network_id": {
          "rule": "required",
          "type": "uint32",
          "id": 3
        },
        "inputs_count": {
          "rule": "required",
          "type": "uint32",
          "id": 4
        },
        "outputs_count": {
          "rule": "required",
          "type": "uint32",
          "id": 5
        },
        "fee": {
          "rule": "required",
          "type": "uint64",
          "id": 6
        },
        "ttl": {
          "type": "uint64",
          "id": 7
        },
        "certificates_count": {
          "rule": "required",
          "type": "uint32",
          "id": 8
        },
        "withdrawals_count": {
          "rule": "required",
          "type": "uint32",
          "id": 9
        },
        "has_auxiliary_data": {
          "rule": "required",
          "type": "bool",
          "id": 10
        },
        "validity_interval_start": {
          "type": "uint64",
          "id": 11
        },
        "witness_requests_count": {
          "rule": "required",
          "type": "uint32",
          "id": 12
        },
        "minting_asset_groups_count": {
          "rule": "required",
          "type": "uint32",
          "id": 13
        },
        "derivation_type": {
          "rule": "required",
          "type": "CardanoDerivationType",
          "id": 14
        },
        "include_network_id": {
          "type": "bool",
          "id": 15,
          "options": {
            "default": false
          }
        },
        "script_data_hash": {
          "type": "bytes",
          "id": 16
        },
        "collateral_inputs_count": {
          "rule": "required",
          "type": "uint32",
          "id": 17
        },
        "required_signers_count": {
          "rule": "required",
          "type": "uint32",
          "id": 18
        },
        "has_collateral_return": {
          "type": "bool",
          "id": 19,
          "options": {
            "default": false
          }
        },
        "total_collateral": {
          "type": "uint64",
          "id": 20
        },
        "reference_inputs_count": {
          "type": "uint32",
          "id": 21,
          "options": {
            "default": 0
          }
        },
        "chunkify": {
          "type": "bool",
          "id": 22
        },
        "tag_cbor_sets": {
          "type": "bool",
          "id": 23,
          "options": {
            "default": false
          }
        }
      }
    },
    "CardanoTxInput": {
      "fields": {
        "prev_hash": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        },
        "prev_index": {
          "rule": "required",
          "type": "uint32",
          "id": 2
        }
      }
    },
    "CardanoTxOutput": {
      "fields": {
        "address": {
          "type": "string",
          "id": 1
        },
        "address_parameters": {
          "type": "CardanoAddressParametersType",
          "id": 2
        },
        "amount": {
          "rule": "required",
          "type": "uint64",
          "id": 3
        },
        "asset_groups_count": {
          "rule": "required",
          "type": "uint32",
          "id": 4
        },
        "datum_hash": {
          "type": "bytes",
          "id": 5
        },
        "format": {
          "type": "CardanoTxOutputSerializationFormat",
          "id": 6,
          "options": {
            "default": "ARRAY_LEGACY"
          }
        },
        "inline_datum_size": {
          "type": "uint32",
          "id": 7,
          "options": {
            "default": 0
          }
        },
        "reference_script_size": {
          "type": "uint32",
          "id": 8,
          "options": {
            "default": 0
          }
        }
      }
    },
    "CardanoAssetGroup": {
      "fields": {
        "policy_id": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        },
        "tokens_count": {
          "rule": "required",
          "type": "uint32",
          "id": 2
        }
      }
    },
    "CardanoToken": {
      "fields": {
        "asset_name_bytes": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        },
        "amount": {
          "type": "uint64",
          "id": 2
        },
        "mint_amount": {
          "type": "sint64",
          "id": 3
        }
      }
    },
    "CardanoTxInlineDatumChunk": {
      "fields": {
        "data": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        }
      }
    },
    "CardanoTxReferenceScriptChunk": {
      "fields": {
        "data": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        }
      }
    },
    "CardanoPoolOwner": {
      "fields": {
        "staking_key_path": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "staking_key_hash": {
          "type": "bytes",
          "id": 2
        }
      }
    },
    "CardanoPoolRelayParameters": {
      "fields": {
        "type": {
          "rule": "required",
          "type": "CardanoPoolRelayType",
          "id": 1
        },
        "ipv4_address": {
          "type": "bytes",
          "id": 2
        },
        "ipv6_address": {
          "type": "bytes",
          "id": 3
        },
        "host_name": {
          "type": "string",
          "id": 4
        },
        "port": {
          "type": "uint32",
          "id": 5
        }
      }
    },
    "CardanoPoolMetadataType": {
      "fields": {
        "url": {
          "rule": "required",
          "type": "string",
          "id": 1
        },
        "hash": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        }
      }
    },
    "CardanoPoolParametersType": {
      "fields": {
        "pool_id": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        },
        "vrf_key_hash": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        },
        "pledge": {
          "rule": "required",
          "type": "uint64",
          "id": 3
        },
        "cost": {
          "rule": "required",
          "type": "uint64",
          "id": 4
        },
        "margin_numerator": {
          "rule": "required",
          "type": "uint64",
          "id": 5
        },
        "margin_denominator": {
          "rule": "required",
          "type": "uint64",
          "id": 6
        },
        "reward_account": {
          "rule": "required",
          "type": "string",
          "id": 7
        },
        "metadata": {
          "type": "CardanoPoolMetadataType",
          "id": 10
        },
        "owners_count": {
          "rule": "required",
          "type": "uint32",
          "id": 11
        },
        "relays_count": {
          "rule": "required",
          "type": "uint32",
          "id": 12
        }
      }
    },
    "CardanoDRep": {
      "fields": {
        "type": {
          "rule": "required",
          "type": "CardanoDRepType",
          "id": 1
        },
        "key_hash": {
          "type": "bytes",
          "id": 2
        },
        "script_hash": {
          "type": "bytes",
          "id": 3
        }
      }
    },
    "CardanoTxCertificate": {
      "fields": {
        "type": {
          "rule": "required",
          "type": "CardanoCertificateType",
          "id": 1
        },
        "path": {
          "rule": "repeated",
          "type": "uint32",
          "id": 2,
          "options": {
            "packed": false
          }
        },
        "pool": {
          "type": "bytes",
          "id": 3
        },
        "pool_parameters": {
          "type": "CardanoPoolParametersType",
          "id": 4
        },
        "script_hash": {
          "type": "bytes",
          "id": 5
        },
        "key_hash": {
          "type": "bytes",
          "id": 6
        },
        "deposit": {
          "type": "uint64",
          "id": 7
        },
        "drep": {
          "type": "CardanoDRep",
          "id": 8
        }
      }
    },
    "CardanoTxWithdrawal": {
      "fields": {
        "path": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "amount": {
          "rule": "required",
          "type": "uint64",
          "id": 2
        },
        "script_hash": {
          "type": "bytes",
          "id": 3
        },
        "key_hash": {
          "type": "bytes",
          "id": 4
        }
      }
    },
    "CardanoCVoteRegistrationDelegation": {
      "fields": {
        "vote_public_key": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        },
        "weight": {
          "rule": "required",
          "type": "uint32",
          "id": 2
        }
      }
    },
    "CardanoCVoteRegistrationParametersType": {
      "fields": {
        "vote_public_key": {
          "type": "bytes",
          "id": 1
        },
        "staking_path": {
          "rule": "repeated",
          "type": "uint32",
          "id": 2,
          "options": {
            "packed": false
          }
        },
        "payment_address_parameters": {
          "type": "CardanoAddressParametersType",
          "id": 3
        },
        "nonce": {
          "rule": "required",
          "type": "uint64",
          "id": 4
        },
        "format": {
          "type": "CardanoCVoteRegistrationFormat",
          "id": 5,
          "options": {
            "default": "CIP15"
          }
        },
        "delegations": {
          "rule": "repeated",
          "type": "CardanoCVoteRegistrationDelegation",
          "id": 6
        },
        "voting_purpose": {
          "type": "uint64",
          "id": 7
        },
        "payment_address": {
          "type": "string",
          "id": 8
        }
      }
    },
    "CardanoTxAuxiliaryData": {
      "fields": {
        "cvote_registration_parameters": {
          "type": "CardanoCVoteRegistrationParametersType",
          "id": 1
        },
        "hash": {
          "type": "bytes",
          "id": 2
        }
      }
    },
    "CardanoTxMint": {
      "fields": {
        "asset_groups_count": {
          "rule": "required",
          "type": "uint32",
          "id": 1
        }
      }
    },
    "CardanoTxCollateralInput": {
      "fields": {
        "prev_hash": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        },
        "prev_index": {
          "rule": "required",
          "type": "uint32",
          "id": 2
        }
      }
    },
    "CardanoTxRequiredSigner": {
      "fields": {
        "key_hash": {
          "type": "bytes",
          "id": 1
        },
        "key_path": {
          "rule": "repeated",
          "type": "uint32",
          "id": 2,
          "options": {
            "packed": false
          }
        }
      }
    },
    "CardanoTxReferenceInput": {
      "fields": {
        "prev_hash": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        },
        "prev_index": {
          "rule": "required",
          "type": "uint32",
          "id": 2
        }
      }
    },
    "CardanoTxItemAck": {
      "fields": {}
    },
    "CardanoTxAuxiliaryDataSupplement": {
      "fields": {
        "type": {
          "rule": "required",
          "type": "CardanoTxAuxiliaryDataSupplementType",
          "id": 1
        },
        "auxiliary_data_hash": {
          "type": "bytes",
          "id": 2
        },
        "cvote_registration_signature": {
          "type": "bytes",
          "id": 3
        }
      }
    },
    "CardanoTxWitnessRequest": {
      "fields": {
        "path": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        }
      }
    },
    "CardanoTxWitnessResponse": {
      "fields": {
        "type": {
          "rule": "required",
          "type": "CardanoTxWitnessType",
          "id": 1
        },
        "pub_key": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        },
        "signature": {
          "rule": "required",
          "type": "bytes",
          "id": 3
        },
        "chain_code": {
          "type": "bytes",
          "id": 4
        }
      }
    },
    "CardanoTxHostAck": {
      "fields": {}
    },
    "CardanoTxBodyHash": {
      "fields": {
        "tx_hash": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        }
      }
    },
    "CardanoSignTxFinished": {
      "fields": {}
    },
    "CardanoSignMessage": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "message": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        },
        "derivation_type": {
          "rule": "required",
          "type": "CardanoDerivationType",
          "id": 3
        },
        "network_id": {
          "rule": "required",
          "type": "uint32",
          "id": 4
        },
        "address_type": {
          "type": "CardanoAddressType",
          "id": 5
        },
        "protocol_magic": {
          "type": "uint32",
          "id": 6
        }
      }
    },
    "CardanoMessageSignature": {
      "fields": {
        "signature": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        },
        "key": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        }
      }
    },
    "Success": {
      "fields": {
        "message": {
          "type": "string",
          "id": 1,
          "options": {
            "default": ""
          }
        }
      }
    },
    "Failure": {
      "fields": {
        "code": {
          "type": "FailureType",
          "id": 1
        },
        "message": {
          "type": "string",
          "id": 2
        }
      },
      "nested": {
        "FailureType": {
          "values": {
            "Failure_UnexpectedMessage": 1,
            "Failure_ButtonExpected": 2,
            "Failure_DataError": 3,
            "Failure_ActionCancelled": 4,
            "Failure_PinExpected": 5,
            "Failure_PinCancelled": 6,
            "Failure_PinInvalid": 7,
            "Failure_InvalidSignature": 8,
            "Failure_ProcessError": 9,
            "Failure_NotEnoughFunds": 10,
            "Failure_NotInitialized": 11,
            "Failure_PinMismatch": 12,
            "Failure_WipeCodeMismatch": 13,
            "Failure_InvalidSession": 14,
            "Failure_FirmwareError": 99
          }
        }
      }
    },
    "ButtonRequest": {
      "fields": {
        "code": {
          "type": "ButtonRequestType",
          "id": 1
        },
        "pages": {
          "type": "uint32",
          "id": 2
        }
      },
      "nested": {
        "ButtonRequestType": {
          "values": {
            "ButtonRequest_Other": 1,
            "ButtonRequest_FeeOverThreshold": 2,
            "ButtonRequest_ConfirmOutput": 3,
            "ButtonRequest_ResetDevice": 4,
            "ButtonRequest_ConfirmWord": 5,
            "ButtonRequest_WipeDevice": 6,
            "ButtonRequest_ProtectCall": 7,
            "ButtonRequest_SignTx": 8,
            "ButtonRequest_FirmwareCheck": 9,
            "ButtonRequest_Address": 10,
            "ButtonRequest_PublicKey": 11,
            "ButtonRequest_MnemonicWordCount": 12,
            "ButtonRequest_MnemonicInput": 13,
            "_Deprecated_ButtonRequest_PassphraseType": 14,
            "ButtonRequest_UnknownDerivationPath": 15,
            "ButtonRequest_RecoveryHomepage": 16,
            "ButtonRequest_Success": 17,
            "ButtonRequest_Warning": 18,
            "ButtonRequest_PassphraseEntry": 19,
            "ButtonRequest_PinEntry": 20,
            "ButtonRequest_AttachPin": 8000
          }
        }
      }
    },
    "ButtonAck": {
      "fields": {}
    },
    "PinMatrixRequest": {
      "fields": {
        "type": {
          "type": "PinMatrixRequestType",
          "id": 1
        }
      },
      "nested": {
        "PinMatrixRequestType": {
          "values": {
            "PinMatrixRequestType_Current": 1,
            "PinMatrixRequestType_NewFirst": 2,
            "PinMatrixRequestType_NewSecond": 3,
            "PinMatrixRequestType_WipeCodeFirst": 4,
            "PinMatrixRequestType_WipeCodeSecond": 5,
            "PinMatrixRequestType_BackupFirst": 6,
            "PinMatrixRequestType_BackupSecond": 7,
            "PinMatrixRequestType_AttachToPin": 8000
          }
        }
      }
    },
    "PinMatrixAck": {
      "fields": {
        "pin": {
          "rule": "required",
          "type": "string",
          "id": 1
        },
        "new_pin": {
          "type": "string",
          "id": 2
        }
      }
    },
    "PassphraseRequest": {
      "fields": {
        "_on_device": {
          "type": "bool",
          "id": 1,
          "options": {
            "deprecated": true
          }
        },
        "exists_attach_pin_user": {
          "type": "bool",
          "id": 8000
        }
      }
    },
    "PassphraseAck": {
      "fields": {
        "passphrase": {
          "type": "string",
          "id": 1
        },
        "_state": {
          "type": "bytes",
          "id": 2,
          "options": {
            "deprecated": true
          }
        },
        "on_device": {
          "type": "bool",
          "id": 3
        },
        "on_device_attach_pin": {
          "type": "bool",
          "id": 8000
        }
      }
    },
    "Deprecated_PassphraseStateRequest": {
      "options": {
        "deprecated": true
      },
      "fields": {
        "state": {
          "type": "bytes",
          "id": 1
        }
      }
    },
    "Deprecated_PassphraseStateAck": {
      "options": {
        "deprecated": true
      },
      "fields": {}
    },
    "HDNodeType": {
      "fields": {
        "depth": {
          "rule": "required",
          "type": "uint32",
          "id": 1
        },
        "fingerprint": {
          "rule": "required",
          "type": "uint32",
          "id": 2
        },
        "child_num": {
          "rule": "required",
          "type": "uint32",
          "id": 3
        },
        "chain_code": {
          "rule": "required",
          "type": "bytes",
          "id": 4
        },
        "private_key": {
          "type": "bytes",
          "id": 5
        },
        "public_key": {
          "rule": "required",
          "type": "bytes",
          "id": 6
        }
      }
    },
    "BixinPinInputOnDevice": {
      "fields": {}
    },
    "ConfluxGetAddress": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "show_display": {
          "type": "bool",
          "id": 2
        },
        "chain_id": {
          "type": "uint32",
          "id": 3
        }
      }
    },
    "ConfluxAddress": {
      "fields": {
        "address": {
          "type": "string",
          "id": 1
        }
      }
    },
    "ConfluxSignTx": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "nonce": {
          "type": "bytes",
          "id": 2
        },
        "gas_price": {
          "type": "bytes",
          "id": 3
        },
        "gas_limit": {
          "type": "bytes",
          "id": 4
        },
        "to": {
          "type": "string",
          "id": 5
        },
        "value": {
          "type": "bytes",
          "id": 6
        },
        "epoch_height": {
          "type": "bytes",
          "id": 7
        },
        "storage_limit": {
          "type": "bytes",
          "id": 8
        },
        "data_initial_chunk": {
          "type": "bytes",
          "id": 9
        },
        "data_length": {
          "type": "uint32",
          "id": 10
        },
        "chain_id": {
          "type": "uint32",
          "id": 11
        }
      }
    },
    "ConfluxTxRequest": {
      "fields": {
        "data_length": {
          "type": "uint32",
          "id": 1
        },
        "signature_v": {
          "type": "uint32",
          "id": 2
        },
        "signature_r": {
          "type": "bytes",
          "id": 3
        },
        "signature_s": {
          "type": "bytes",
          "id": 4
        }
      }
    },
    "ConfluxTxAck": {
      "fields": {
        "data_chunk": {
          "type": "bytes",
          "id": 1
        }
      }
    },
    "ConfluxSignMessage": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "message": {
          "type": "bytes",
          "id": 2
        }
      }
    },
    "ConfluxMessageSignature": {
      "fields": {
        "signature": {
          "type": "bytes",
          "id": 2
        },
        "address": {
          "type": "string",
          "id": 3
        }
      }
    },
    "ConfluxSignMessageCIP23": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "domain_hash": {
          "type": "bytes",
          "id": 2
        },
        "message_hash": {
          "type": "bytes",
          "id": 3
        }
      }
    },
    "CosmosGetAddress": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "hrp": {
          "type": "string",
          "id": 2
        },
        "show_display": {
          "type": "bool",
          "id": 3
        }
      }
    },
    "CosmosAddress": {
      "fields": {
        "address": {
          "type": "string",
          "id": 1
        }
      }
    },
    "CosmosSignTx": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "raw_tx": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        }
      }
    },
    "CosmosSignedTx": {
      "fields": {
        "signature": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        }
      }
    },
    "CipherKeyValue": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "key": {
          "rule": "required",
          "type": "string",
          "id": 2
        },
        "value": {
          "rule": "required",
          "type": "bytes",
          "id": 3
        },
        "encrypt": {
          "type": "bool",
          "id": 4
        },
        "ask_on_encrypt": {
          "type": "bool",
          "id": 5
        },
        "ask_on_decrypt": {
          "type": "bool",
          "id": 6
        },
        "iv": {
          "type": "bytes",
          "id": 7
        }
      }
    },
    "CipheredKeyValue": {
      "fields": {
        "value": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        }
      }
    },
    "IdentityType": {
      "fields": {
        "proto": {
          "type": "string",
          "id": 1
        },
        "user": {
          "type": "string",
          "id": 2
        },
        "host": {
          "type": "string",
          "id": 3
        },
        "port": {
          "type": "string",
          "id": 4
        },
        "path": {
          "type": "string",
          "id": 5
        },
        "index": {
          "type": "uint32",
          "id": 6,
          "options": {
            "default": 0
          }
        }
      }
    },
    "SignIdentity": {
      "fields": {
        "identity": {
          "rule": "required",
          "type": "IdentityType",
          "id": 1
        },
        "challenge_hidden": {
          "type": "bytes",
          "id": 2,
          "options": {
            "default": ""
          }
        },
        "challenge_visual": {
          "type": "string",
          "id": 3,
          "options": {
            "default": ""
          }
        },
        "ecdsa_curve_name": {
          "type": "string",
          "id": 4
        }
      }
    },
    "SignedIdentity": {
      "fields": {
        "address": {
          "type": "string",
          "id": 1
        },
        "public_key": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        },
        "signature": {
          "rule": "required",
          "type": "bytes",
          "id": 3
        }
      }
    },
    "GetECDHSessionKey": {
      "fields": {
        "identity": {
          "rule": "required",
          "type": "IdentityType",
          "id": 1
        },
        "peer_public_key": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        },
        "ecdsa_curve_name": {
          "type": "string",
          "id": 3
        }
      }
    },
    "ECDHSessionKey": {
      "fields": {
        "session_key": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        },
        "public_key": {
          "type": "bytes",
          "id": 2
        }
      }
    },
    "CosiCommit": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "data": {
          "type": "bytes",
          "id": 2
        }
      }
    },
    "CosiCommitment": {
      "fields": {
        "commitment": {
          "type": "bytes",
          "id": 1
        },
        "pubkey": {
          "type": "bytes",
          "id": 2
        }
      }
    },
    "CosiSign": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "data": {
          "type": "bytes",
          "id": 2
        },
        "global_commitment": {
          "type": "bytes",
          "id": 3
        },
        "global_pubkey": {
          "type": "bytes",
          "id": 4
        }
      }
    },
    "CosiSignature": {
      "fields": {
        "signature": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        }
      }
    },
    "BatchGetPublickeys": {
      "fields": {
        "ecdsa_curve_name": {
          "type": "string",
          "id": 1,
          "options": {
            "default": "ed25519"
          }
        },
        "paths": {
          "rule": "repeated",
          "type": "Path",
          "id": 2
        },
        "include_node": {
          "type": "bool",
          "id": 3,
          "options": {
            "default": false
          }
        }
      },
      "nested": {
        "Path": {
          "fields": {
            "address_n": {
              "rule": "repeated",
              "type": "uint32",
              "id": 1,
              "options": {
                "packed": false
              }
            }
          }
        }
      }
    },
    "EcdsaPublicKeys": {
      "fields": {
        "public_keys": {
          "rule": "repeated",
          "type": "bytes",
          "id": 1
        },
        "hd_nodes": {
          "rule": "repeated",
          "type": "HDNodeType",
          "id": 2
        },
        "root_fingerprint": {
          "type": "uint32",
          "id": 3
        }
      }
    },
    "DebugLinkDecision": {
      "fields": {
        "yes_no": {
          "type": "bool",
          "id": 1
        },
        "swipe": {
          "type": "DebugSwipeDirection",
          "id": 2
        },
        "input": {
          "type": "string",
          "id": 3
        },
        "x": {
          "type": "uint32",
          "id": 4
        },
        "y": {
          "type": "uint32",
          "id": 5
        },
        "wait": {
          "type": "bool",
          "id": 6
        },
        "hold_ms": {
          "type": "uint32",
          "id": 7
        }
      },
      "nested": {
        "DebugSwipeDirection": {
          "values": {
            "UP": 0,
            "DOWN": 1,
            "LEFT": 2,
            "RIGHT": 3
          }
        }
      }
    },
    "DebugLinkLayout": {
      "fields": {
        "lines": {
          "rule": "repeated",
          "type": "string",
          "id": 1
        }
      }
    },
    "DebugLinkReseedRandom": {
      "fields": {
        "value": {
          "type": "uint32",
          "id": 1
        }
      }
    },
    "DebugLinkRecordScreen": {
      "fields": {
        "target_directory": {
          "type": "string",
          "id": 1
        }
      }
    },
    "DebugLinkGetState": {
      "fields": {
        "wait_word_list": {
          "type": "bool",
          "id": 1
        },
        "wait_word_pos": {
          "type": "bool",
          "id": 2
        },
        "wait_layout": {
          "type": "bool",
          "id": 3
        }
      }
    },
    "DebugLinkState": {
      "fields": {
        "layout": {
          "type": "bytes",
          "id": 1
        },
        "pin": {
          "type": "string",
          "id": 2
        },
        "matrix": {
          "type": "string",
          "id": 3
        },
        "mnemonic_secret": {
          "type": "bytes",
          "id": 4
        },
        "node": {
          "type": "HDNodeType",
          "id": 5
        },
        "passphrase_protection": {
          "type": "bool",
          "id": 6
        },
        "reset_word": {
          "type": "string",
          "id": 7
        },
        "reset_entropy": {
          "type": "bytes",
          "id": 8
        },
        "recovery_fake_word": {
          "type": "string",
          "id": 9
        },
        "recovery_word_pos": {
          "type": "uint32",
          "id": 10
        },
        "reset_word_pos": {
          "type": "uint32",
          "id": 11
        },
        "mnemonic_type": {
          "type": "BackupType",
          "id": 12
        },
        "layout_lines": {
          "rule": "repeated",
          "type": "string",
          "id": 13
        }
      }
    },
    "DebugLinkStop": {
      "fields": {}
    },
    "DebugLinkLog": {
      "fields": {
        "level": {
          "type": "uint32",
          "id": 1
        },
        "bucket": {
          "type": "string",
          "id": 2
        },
        "text": {
          "type": "string",
          "id": 3
        }
      }
    },
    "DebugLinkMemoryRead": {
      "fields": {
        "address": {
          "type": "uint32",
          "id": 1
        },
        "length": {
          "type": "uint32",
          "id": 2
        }
      }
    },
    "DebugLinkMemory": {
      "fields": {
        "memory": {
          "type": "bytes",
          "id": 1
        }
      }
    },
    "DebugLinkMemoryWrite": {
      "fields": {
        "address": {
          "type": "uint32",
          "id": 1
        },
        "memory": {
          "type": "bytes",
          "id": 2
        },
        "flash": {
          "type": "bool",
          "id": 3
        }
      }
    },
    "DebugLinkFlashErase": {
      "fields": {
        "sector": {
          "type": "uint32",
          "id": 1
        }
      }
    },
    "DebugLinkEraseSdCard": {
      "fields": {
        "format": {
          "type": "bool",
          "id": 1
        }
      }
    },
    "DebugLinkWatchLayout": {
      "fields": {
        "watch": {
          "type": "bool",
          "id": 1
        }
      }
    },
    "DnxGetAddress": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "show_display": {
          "type": "bool",
          "id": 2
        }
      }
    },
    "DnxAddress": {
      "fields": {
        "address": {
          "type": "string",
          "id": 1
        }
      }
    },
    "DnxSignTx": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "inputs_count": {
          "rule": "required",
          "type": "uint32",
          "id": 2
        },
        "to_address": {
          "rule": "required",
          "type": "string",
          "id": 3
        },
        "amount": {
          "rule": "required",
          "type": "uint64",
          "id": 4
        },
        "fee": {
          "rule": "required",
          "type": "uint64",
          "id": 5
        },
        "payment_id": {
          "type": "bytes",
          "id": 6
        }
      }
    },
    "DnxInputRequest": {
      "fields": {
        "request_index": {
          "type": "uint32",
          "id": 1
        },
        "tx_key": {
          "type": "DnxTxKey",
          "id": 2
        },
        "computed_key_image": {
          "type": "DnxComputedKeyImage",
          "id": 3
        }
      },
      "nested": {
        "DnxTxKey": {
          "fields": {
            "ephemeral_tx_sec_key": {
              "type": "bytes",
              "id": 1
            },
            "ephemeral_tx_pub_key": {
              "type": "bytes",
              "id": 2
            }
          }
        },
        "DnxComputedKeyImage": {
          "fields": {
            "key_image": {
              "type": "bytes",
              "id": 1
            }
          }
        }
      }
    },
    "DnxInputAck": {
      "fields": {
        "prev_index": {
          "rule": "required",
          "type": "uint32",
          "id": 1
        },
        "global_index": {
          "rule": "required",
          "type": "uint32",
          "id": 2
        },
        "tx_pubkey": {
          "rule": "required",
          "type": "bytes",
          "id": 3
        },
        "prev_out_pubkey": {
          "rule": "required",
          "type": "bytes",
          "id": 4
        },
        "amount": {
          "rule": "required",
          "type": "uint64",
          "id": 5
        }
      }
    },
    "DnxRTSigsRequest": {
      "fields": {}
    },
    "DnxSignedTx": {
      "fields": {
        "signatures": {
          "rule": "repeated",
          "type": "bytes",
          "id": 1
        },
        "output_keys": {
          "rule": "repeated",
          "type": "bytes",
          "id": 2
        }
      }
    },
    "EmmcFixPermission": {
      "fields": {}
    },
    "EmmcPath": {
      "fields": {
        "exist": {
          "rule": "required",
          "type": "bool",
          "id": 1
        },
        "size": {
          "rule": "required",
          "type": "uint64",
          "id": 2
        },
        "year": {
          "rule": "required",
          "type": "uint32",
          "id": 3
        },
        "month": {
          "rule": "required",
          "type": "uint32",
          "id": 4
        },
        "day": {
          "rule": "required",
          "type": "uint32",
          "id": 5
        },
        "hour": {
          "rule": "required",
          "type": "uint32",
          "id": 6
        },
        "minute": {
          "rule": "required",
          "type": "uint32",
          "id": 7
        },
        "second": {
          "rule": "required",
          "type": "uint32",
          "id": 8
        },
        "readonly": {
          "rule": "required",
          "type": "bool",
          "id": 9
        },
        "hidden": {
          "rule": "required",
          "type": "bool",
          "id": 10
        },
        "system": {
          "rule": "required",
          "type": "bool",
          "id": 11
        },
        "archive": {
          "rule": "required",
          "type": "bool",
          "id": 12
        },
        "directory": {
          "rule": "required",
          "type": "bool",
          "id": 13
        }
      }
    },
    "EmmcPathInfo": {
      "fields": {
        "path": {
          "rule": "required",
          "type": "string",
          "id": 1
        }
      }
    },
    "EmmcFile": {
      "fields": {
        "path": {
          "rule": "required",
          "type": "string",
          "id": 1
        },
        "offset": {
          "rule": "required",
          "type": "uint32",
          "id": 2
        },
        "len": {
          "rule": "required",
          "type": "uint32",
          "id": 3
        },
        "data": {
          "type": "bytes",
          "id": 4
        },
        "data_hash": {
          "type": "uint32",
          "id": 5
        },
        "processed_byte": {
          "type": "uint32",
          "id": 6
        }
      }
    },
    "EmmcFileRead": {
      "fields": {
        "file": {
          "rule": "required",
          "type": "EmmcFile",
          "id": 1
        },
        "ui_percentage": {
          "type": "uint32",
          "id": 2
        }
      }
    },
    "EmmcFileWrite": {
      "fields": {
        "file": {
          "rule": "required",
          "type": "EmmcFile",
          "id": 1
        },
        "overwrite": {
          "rule": "required",
          "type": "bool",
          "id": 2
        },
        "append": {
          "rule": "required",
          "type": "bool",
          "id": 3
        },
        "ui_percentage": {
          "type": "uint32",
          "id": 4
        }
      }
    },
    "EmmcFileDelete": {
      "fields": {
        "path": {
          "rule": "required",
          "type": "string",
          "id": 1
        }
      }
    },
    "EmmcDir": {
      "fields": {
        "path": {
          "rule": "required",
          "type": "string",
          "id": 1
        },
        "child_dirs": {
          "type": "string",
          "id": 2
        },
        "child_files": {
          "type": "string",
          "id": 3
        }
      }
    },
    "EmmcDirList": {
      "fields": {
        "path": {
          "rule": "required",
          "type": "string",
          "id": 1
        }
      }
    },
    "EmmcDirMake": {
      "fields": {
        "path": {
          "rule": "required",
          "type": "string",
          "id": 1
        }
      }
    },
    "EmmcDirRemove": {
      "fields": {
        "path": {
          "rule": "required",
          "type": "string",
          "id": 1
        }
      }
    },
    "EosGetPublicKey": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "show_display": {
          "type": "bool",
          "id": 2
        }
      }
    },
    "EosPublicKey": {
      "fields": {
        "wif_public_key": {
          "rule": "required",
          "type": "string",
          "id": 1
        },
        "raw_public_key": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        }
      }
    },
    "EosSignTx": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "chain_id": {
          "type": "bytes",
          "id": 2
        },
        "header": {
          "type": "EosTxHeader",
          "id": 3
        },
        "num_actions": {
          "type": "uint32",
          "id": 4
        }
      },
      "nested": {
        "EosTxHeader": {
          "fields": {
            "expiration": {
              "rule": "required",
              "type": "uint32",
              "id": 1
            },
            "ref_block_num": {
              "rule": "required",
              "type": "uint32",
              "id": 2
            },
            "ref_block_prefix": {
              "rule": "required",
              "type": "uint32",
              "id": 3
            },
            "max_net_usage_words": {
              "rule": "required",
              "type": "uint32",
              "id": 4
            },
            "max_cpu_usage_ms": {
              "rule": "required",
              "type": "uint32",
              "id": 5
            },
            "delay_sec": {
              "rule": "required",
              "type": "uint32",
              "id": 6
            }
          }
        }
      }
    },
    "EosTxActionRequest": {
      "fields": {
        "data_size": {
          "type": "uint32",
          "id": 1
        }
      }
    },
    "EosTxActionAck": {
      "fields": {
        "common": {
          "type": "EosActionCommon",
          "id": 1
        },
        "transfer": {
          "type": "EosActionTransfer",
          "id": 2
        },
        "delegate": {
          "type": "EosActionDelegate",
          "id": 3
        },
        "undelegate": {
          "type": "EosActionUndelegate",
          "id": 4
        },
        "refund": {
          "type": "EosActionRefund",
          "id": 5
        },
        "buy_ram": {
          "type": "EosActionBuyRam",
          "id": 6
        },
        "buy_ram_bytes": {
          "type": "EosActionBuyRamBytes",
          "id": 7
        },
        "sell_ram": {
          "type": "EosActionSellRam",
          "id": 8
        },
        "vote_producer": {
          "type": "EosActionVoteProducer",
          "id": 9
        },
        "update_auth": {
          "type": "EosActionUpdateAuth",
          "id": 10
        },
        "delete_auth": {
          "type": "EosActionDeleteAuth",
          "id": 11
        },
        "link_auth": {
          "type": "EosActionLinkAuth",
          "id": 12
        },
        "unlink_auth": {
          "type": "EosActionUnlinkAuth",
          "id": 13
        },
        "new_account": {
          "type": "EosActionNewAccount",
          "id": 14
        },
        "unknown": {
          "type": "EosActionUnknown",
          "id": 15
        }
      },
      "nested": {
        "EosAsset": {
          "fields": {
            "amount": {
              "type": "sint64",
              "id": 1
            },
            "symbol": {
              "type": "uint64",
              "id": 2
            }
          }
        },
        "EosPermissionLevel": {
          "fields": {
            "actor": {
              "type": "uint64",
              "id": 1
            },
            "permission": {
              "type": "uint64",
              "id": 2
            }
          }
        },
        "EosAuthorizationKey": {
          "fields": {
            "type": {
              "rule": "required",
              "type": "uint32",
              "id": 1
            },
            "key": {
              "type": "bytes",
              "id": 2
            },
            "address_n": {
              "rule": "repeated",
              "type": "uint32",
              "id": 3,
              "options": {
                "packed": false
              }
            },
            "weight": {
              "rule": "required",
              "type": "uint32",
              "id": 4
            }
          }
        },
        "EosAuthorizationAccount": {
          "fields": {
            "account": {
              "type": "EosPermissionLevel",
              "id": 1
            },
            "weight": {
              "type": "uint32",
              "id": 2
            }
          }
        },
        "EosAuthorizationWait": {
          "fields": {
            "wait_sec": {
              "type": "uint32",
              "id": 1
            },
            "weight": {
              "type": "uint32",
              "id": 2
            }
          }
        },
        "EosAuthorization": {
          "fields": {
            "threshold": {
              "type": "uint32",
              "id": 1
            },
            "keys": {
              "rule": "repeated",
              "type": "EosAuthorizationKey",
              "id": 2
            },
            "accounts": {
              "rule": "repeated",
              "type": "EosAuthorizationAccount",
              "id": 3
            },
            "waits": {
              "rule": "repeated",
              "type": "EosAuthorizationWait",
              "id": 4
            }
          }
        },
        "EosActionCommon": {
          "fields": {
            "account": {
              "type": "uint64",
              "id": 1
            },
            "name": {
              "type": "uint64",
              "id": 2
            },
            "authorization": {
              "rule": "repeated",
              "type": "EosPermissionLevel",
              "id": 3
            }
          }
        },
        "EosActionTransfer": {
          "fields": {
            "sender": {
              "type": "uint64",
              "id": 1
            },
            "receiver": {
              "type": "uint64",
              "id": 2
            },
            "quantity": {
              "type": "EosAsset",
              "id": 3
            },
            "memo": {
              "type": "string",
              "id": 4
            }
          }
        },
        "EosActionDelegate": {
          "fields": {
            "sender": {
              "type": "uint64",
              "id": 1
            },
            "receiver": {
              "type": "uint64",
              "id": 2
            },
            "net_quantity": {
              "type": "EosAsset",
              "id": 3
            },
            "cpu_quantity": {
              "type": "EosAsset",
              "id": 4
            },
            "transfer": {
              "type": "bool",
              "id": 5
            }
          }
        },
        "EosActionUndelegate": {
          "fields": {
            "sender": {
              "type": "uint64",
              "id": 1
            },
            "receiver": {
              "type": "uint64",
              "id": 2
            },
            "net_quantity": {
              "type": "EosAsset",
              "id": 3
            },
            "cpu_quantity": {
              "type": "EosAsset",
              "id": 4
            }
          }
        },
        "EosActionRefund": {
          "fields": {
            "owner": {
              "type": "uint64",
              "id": 1
            }
          }
        },
        "EosActionBuyRam": {
          "fields": {
            "payer": {
              "type": "uint64",
              "id": 1
            },
            "receiver": {
              "type": "uint64",
              "id": 2
            },
            "quantity": {
              "type": "EosAsset",
              "id": 3
            }
          }
        },
        "EosActionBuyRamBytes": {
          "fields": {
            "payer": {
              "type": "uint64",
              "id": 1
            },
            "receiver": {
              "type": "uint64",
              "id": 2
            },
            "bytes": {
              "type": "uint32",
              "id": 3
            }
          }
        },
        "EosActionSellRam": {
          "fields": {
            "account": {
              "type": "uint64",
              "id": 1
            },
            "bytes": {
              "type": "uint64",
              "id": 2
            }
          }
        },
        "EosActionVoteProducer": {
          "fields": {
            "voter": {
              "type": "uint64",
              "id": 1
            },
            "proxy": {
              "type": "uint64",
              "id": 2
            },
            "producers": {
              "rule": "repeated",
              "type": "uint64",
              "id": 3,
              "options": {
                "packed": false
              }
            }
          }
        },
        "EosActionUpdateAuth": {
          "fields": {
            "account": {
              "type": "uint64",
              "id": 1
            },
            "permission": {
              "type": "uint64",
              "id": 2
            },
            "parent": {
              "type": "uint64",
              "id": 3
            },
            "auth": {
              "type": "EosAuthorization",
              "id": 4
            }
          }
        },
        "EosActionDeleteAuth": {
          "fields": {
            "account": {
              "type": "uint64",
              "id": 1
            },
            "permission": {
              "type": "uint64",
              "id": 2
            }
          }
        },
        "EosActionLinkAuth": {
          "fields": {
            "account": {
              "type": "uint64",
              "id": 1
            },
            "code": {
              "type": "uint64",
              "id": 2
            },
            "type": {
              "type": "uint64",
              "id": 3
            },
            "requirement": {
              "type": "uint64",
              "id": 4
            }
          }
        },
        "EosActionUnlinkAuth": {
          "fields": {
            "account": {
              "type": "uint64",
              "id": 1
            },
            "code": {
              "type": "uint64",
              "id": 2
            },
            "type": {
              "type": "uint64",
              "id": 3
            }
          }
        },
        "EosActionNewAccount": {
          "fields": {
            "creator": {
              "type": "uint64",
              "id": 1
            },
            "name": {
              "type": "uint64",
              "id": 2
            },
            "owner": {
              "type": "EosAuthorization",
              "id": 3
            },
            "active": {
              "type": "EosAuthorization",
              "id": 4
            }
          }
        },
        "EosActionUnknown": {
          "fields": {
            "data_size": {
              "rule": "required",
              "type": "uint32",
              "id": 1
            },
            "data_chunk": {
              "type": "bytes",
              "id": 2
            }
          }
        }
      }
    },
    "EosSignedTx": {
      "fields": {
        "signature": {
          "rule": "required",
          "type": "string",
          "id": 1
        }
      }
    },
    "EthereumDefinitionType": {
      "values": {
        "NETWORK": 0,
        "TOKEN": 1
      }
    },
    "EthereumNetworkInfo": {
      "fields": {
        "chain_id": {
          "rule": "required",
          "type": "uint64",
          "id": 1
        },
        "symbol": {
          "rule": "required",
          "type": "string",
          "id": 2
        },
        "slip44": {
          "rule": "required",
          "type": "uint32",
          "id": 3
        },
        "name": {
          "rule": "required",
          "type": "string",
          "id": 4
        },
        "icon": {
          "type": "string",
          "id": 101
        },
        "primary_color": {
          "type": "uint64",
          "id": 102
        }
      }
    },
    "EthereumTokenInfo": {
      "fields": {
        "address": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        },
        "chain_id": {
          "rule": "required",
          "type": "uint64",
          "id": 2
        },
        "symbol": {
          "rule": "required",
          "type": "string",
          "id": 3
        },
        "decimals": {
          "rule": "required",
          "type": "uint32",
          "id": 4
        },
        "name": {
          "rule": "required",
          "type": "string",
          "id": 5
        }
      }
    },
    "EthereumDefinitions": {
      "fields": {
        "encoded_network": {
          "type": "bytes",
          "id": 1
        },
        "encoded_token": {
          "type": "bytes",
          "id": 2
        }
      }
    },
    "EthereumSignTypedDataOneKey": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "primary_type": {
          "rule": "required",
          "type": "string",
          "id": 2
        },
        "metamask_v4_compat": {
          "type": "bool",
          "id": 3,
          "options": {
            "default": true
          }
        },
        "chain_id": {
          "type": "uint64",
          "id": 4
        }
      }
    },
    "EthereumGnosisSafeTxOperation": {
      "values": {
        "CALL": 0,
        "DELEGATE_CALL": 1
      }
    },
    "EthereumGnosisSafeTxRequest": {
      "fields": {}
    },
    "EthereumGnosisSafeTxAck": {
      "fields": {
        "to": {
          "rule": "required",
          "type": "string",
          "id": 1
        },
        "value": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        },
        "data": {
          "type": "bytes",
          "id": 3
        },
        "operation": {
          "rule": "required",
          "type": "EthereumGnosisSafeTxOperation",
          "id": 4
        },
        "safeTxGas": {
          "rule": "required",
          "type": "bytes",
          "id": 5
        },
        "baseGas": {
          "rule": "required",
          "type": "bytes",
          "id": 6
        },
        "gasPrice": {
          "rule": "required",
          "type": "bytes",
          "id": 7
        },
        "gasToken": {
          "rule": "required",
          "type": "string",
          "id": 8
        },
        "refundReceiver": {
          "rule": "required",
          "type": "string",
          "id": 9
        },
        "nonce": {
          "rule": "required",
          "type": "bytes",
          "id": 10
        },
        "chain_id": {
          "rule": "required",
          "type": "uint64",
          "id": 11
        },
        "verifyingContract": {
          "rule": "required",
          "type": "string",
          "id": 12
        }
      }
    },
    "EthereumTypedDataStructRequestOneKey": {
      "fields": {
        "name": {
          "rule": "required",
          "type": "string",
          "id": 1
        }
      }
    },
    "EthereumTypedDataStructAckOneKey": {
      "fields": {
        "members": {
          "rule": "repeated",
          "type": "EthereumStructMemberOneKey",
          "id": 1
        }
      },
      "nested": {
        "EthereumStructMemberOneKey": {
          "fields": {
            "type": {
              "rule": "required",
              "type": "EthereumFieldTypeOneKey",
              "id": 1
            },
            "name": {
              "rule": "required",
              "type": "string",
              "id": 2
            }
          }
        },
        "EthereumFieldTypeOneKey": {
          "fields": {
            "data_type": {
              "rule": "required",
              "type": "EthereumDataTypeOneKey",
              "id": 1
            },
            "size": {
              "type": "uint32",
              "id": 2
            },
            "entry_type": {
              "type": "EthereumFieldTypeOneKey",
              "id": 3
            },
            "struct_name": {
              "type": "string",
              "id": 4
            }
          }
        },
        "EthereumDataTypeOneKey": {
          "values": {
            "UINT": 1,
            "INT": 2,
            "BYTES": 3,
            "STRING": 4,
            "BOOL": 5,
            "ADDRESS": 6,
            "ARRAY": 7,
            "STRUCT": 8
          }
        }
      }
    },
    "EthereumTypedDataValueRequestOneKey": {
      "fields": {
        "member_path": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        }
      }
    },
    "EthereumTypedDataValueAckOneKey": {
      "fields": {
        "value": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        }
      }
    },
    "EthereumSignTypedData": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "primary_type": {
          "rule": "required",
          "type": "string",
          "id": 2
        },
        "metamask_v4_compat": {
          "type": "bool",
          "id": 3,
          "options": {
            "default": true
          }
        },
        "definitions": {
          "type": "EthereumDefinitions",
          "id": 4
        }
      }
    },
    "EthereumTypedDataStructRequest": {
      "fields": {
        "name": {
          "rule": "required",
          "type": "string",
          "id": 1
        }
      }
    },
    "EthereumTypedDataStructAck": {
      "fields": {
        "members": {
          "rule": "repeated",
          "type": "EthereumStructMember",
          "id": 1
        }
      },
      "nested": {
        "EthereumStructMember": {
          "fields": {
            "type": {
              "rule": "required",
              "type": "EthereumFieldType",
              "id": 1
            },
            "name": {
              "rule": "required",
              "type": "string",
              "id": 2
            }
          }
        },
        "EthereumFieldType": {
          "fields": {
            "data_type": {
              "rule": "required",
              "type": "EthereumDataType",
              "id": 1
            },
            "size": {
              "type": "uint32",
              "id": 2
            },
            "entry_type": {
              "type": "EthereumFieldType",
              "id": 3
            },
            "struct_name": {
              "type": "string",
              "id": 4
            }
          }
        },
        "EthereumDataType": {
          "values": {
            "UINT": 1,
            "INT": 2,
            "BYTES": 3,
            "STRING": 4,
            "BOOL": 5,
            "ADDRESS": 6,
            "ARRAY": 7,
            "STRUCT": 8
          }
        }
      }
    },
    "EthereumTypedDataValueRequest": {
      "fields": {
        "member_path": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        }
      }
    },
    "EthereumTypedDataValueAck": {
      "fields": {
        "value": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        }
      }
    },
    "EthereumGetPublicKeyOneKey": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "show_display": {
          "type": "bool",
          "id": 2
        },
        "chain_id": {
          "type": "uint64",
          "id": 3
        }
      }
    },
    "EthereumPublicKeyOneKey": {
      "fields": {
        "node": {
          "rule": "required",
          "type": "HDNodeType",
          "id": 1
        },
        "xpub": {
          "rule": "required",
          "type": "string",
          "id": 2
        }
      }
    },
    "EthereumGetAddressOneKey": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "show_display": {
          "type": "bool",
          "id": 2
        },
        "chain_id": {
          "type": "uint64",
          "id": 3
        }
      }
    },
    "EthereumAddressOneKey": {
      "fields": {
        "_old_address": {
          "type": "bytes",
          "id": 1,
          "options": {
            "deprecated": true
          }
        },
        "address": {
          "type": "string",
          "id": 2
        }
      }
    },
    "EthereumSignTxOneKey": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "nonce": {
          "type": "bytes",
          "id": 2,
          "options": {
            "default": ""
          }
        },
        "gas_price": {
          "rule": "required",
          "type": "bytes",
          "id": 3
        },
        "gas_limit": {
          "rule": "required",
          "type": "bytes",
          "id": 4
        },
        "to": {
          "type": "string",
          "id": 11,
          "options": {
            "default": ""
          }
        },
        "value": {
          "type": "bytes",
          "id": 6,
          "options": {
            "default": ""
          }
        },
        "data_initial_chunk": {
          "type": "bytes",
          "id": 7,
          "options": {
            "default": ""
          }
        },
        "data_length": {
          "type": "uint32",
          "id": 8,
          "options": {
            "default": 0
          }
        },
        "chain_id": {
          "rule": "required",
          "type": "uint64",
          "id": 9
        },
        "tx_type": {
          "type": "uint32",
          "id": 10
        }
      }
    },
    "EthereumAccessListOneKey": {
      "fields": {
        "address": {
          "rule": "required",
          "type": "string",
          "id": 1
        },
        "storage_keys": {
          "rule": "repeated",
          "type": "bytes",
          "id": 2
        }
      }
    },
    "EthereumSignTxEIP1559OneKey": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "nonce": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        },
        "max_gas_fee": {
          "rule": "required",
          "type": "bytes",
          "id": 3
        },
        "max_priority_fee": {
          "rule": "required",
          "type": "bytes",
          "id": 4
        },
        "gas_limit": {
          "rule": "required",
          "type": "bytes",
          "id": 5
        },
        "to": {
          "type": "string",
          "id": 6,
          "options": {
            "default": ""
          }
        },
        "value": {
          "rule": "required",
          "type": "bytes",
          "id": 7
        },
        "data_initial_chunk": {
          "type": "bytes",
          "id": 8,
          "options": {
            "default": ""
          }
        },
        "data_length": {
          "rule": "required",
          "type": "uint32",
          "id": 9
        },
        "chain_id": {
          "rule": "required",
          "type": "uint64",
          "id": 10
        },
        "access_list": {
          "rule": "repeated",
          "type": "EthereumAccessListOneKey",
          "id": 11
        }
      }
    },
    "EthereumAuthorizationSignature": {
      "fields": {
        "y_parity": {
          "rule": "required",
          "type": "uint32",
          "id": 1
        },
        "r": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        },
        "s": {
          "rule": "required",
          "type": "bytes",
          "id": 3
        }
      }
    },
    "EthereumSignTxEIP7702OneKey": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "nonce": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        },
        "max_gas_fee": {
          "rule": "required",
          "type": "bytes",
          "id": 3
        },
        "max_priority_fee": {
          "rule": "required",
          "type": "bytes",
          "id": 4
        },
        "gas_limit": {
          "rule": "required",
          "type": "bytes",
          "id": 5
        },
        "to": {
          "rule": "required",
          "type": "string",
          "id": 6
        },
        "value": {
          "rule": "required",
          "type": "bytes",
          "id": 7
        },
        "data_initial_chunk": {
          "type": "bytes",
          "id": 8,
          "options": {
            "default": ""
          }
        },
        "data_length": {
          "rule": "required",
          "type": "uint32",
          "id": 9
        },
        "chain_id": {
          "rule": "required",
          "type": "uint64",
          "id": 10
        },
        "access_list": {
          "rule": "repeated",
          "type": "EthereumAccessListOneKey",
          "id": 11
        },
        "authorization_list": {
          "rule": "repeated",
          "type": "EthereumAuthorizationOneKey",
          "id": 12
        }
      },
      "nested": {
        "EthereumAuthorizationOneKey": {
          "fields": {
            "address_n": {
              "rule": "repeated",
              "type": "uint32",
              "id": 1,
              "options": {
                "packed": false
              }
            },
            "chain_id": {
              "rule": "required",
              "type": "uint64",
              "id": 2
            },
            "address": {
              "rule": "required",
              "type": "string",
              "id": 3
            },
            "nonce": {
              "rule": "required",
              "type": "bytes",
              "id": 4
            },
            "signature": {
              "type": "EthereumAuthorizationSignature",
              "id": 5
            }
          }
        }
      }
    },
    "EthereumTxRequestOneKey": {
      "fields": {
        "data_length": {
          "type": "uint32",
          "id": 1
        },
        "signature_v": {
          "type": "uint32",
          "id": 2
        },
        "signature_r": {
          "type": "bytes",
          "id": 3
        },
        "signature_s": {
          "type": "bytes",
          "id": 4
        },
        "authorization_signatures": {
          "rule": "repeated",
          "type": "EthereumAuthorizationSignature",
          "id": 10
        }
      }
    },
    "EthereumTxAckOneKey": {
      "fields": {
        "data_chunk": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        }
      }
    },
    "EthereumSignMessageOneKey": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "message": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        },
        "chain_id": {
          "type": "uint64",
          "id": 3
        }
      }
    },
    "EthereumMessageSignatureOneKey": {
      "fields": {
        "signature": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        },
        "address": {
          "rule": "required",
          "type": "string",
          "id": 3
        }
      }
    },
    "EthereumVerifyMessageOneKey": {
      "fields": {
        "signature": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        },
        "message": {
          "rule": "required",
          "type": "bytes",
          "id": 3
        },
        "address": {
          "rule": "required",
          "type": "string",
          "id": 4
        },
        "chain_id": {
          "type": "uint64",
          "id": 5
        }
      }
    },
    "EthereumSignTypedHashOneKey": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "domain_separator_hash": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        },
        "message_hash": {
          "type": "bytes",
          "id": 3
        },
        "chain_id": {
          "type": "uint64",
          "id": 4
        }
      }
    },
    "EthereumTypedDataSignatureOneKey": {
      "fields": {
        "signature": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        },
        "address": {
          "rule": "required",
          "type": "string",
          "id": 2
        }
      }
    },
    "EthereumSignMessageEIP712": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "domain_hash": {
          "type": "bytes",
          "id": 2
        },
        "message_hash": {
          "type": "bytes",
          "id": 3
        }
      }
    },
    "EthereumGetPublicKey": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "show_display": {
          "type": "bool",
          "id": 2
        }
      }
    },
    "EthereumPublicKey": {
      "fields": {
        "node": {
          "rule": "required",
          "type": "HDNodeType",
          "id": 1
        },
        "xpub": {
          "rule": "required",
          "type": "string",
          "id": 2
        }
      }
    },
    "EthereumGetAddress": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "show_display": {
          "type": "bool",
          "id": 2
        },
        "encoded_network": {
          "type": "bytes",
          "id": 3
        }
      }
    },
    "EthereumAddress": {
      "fields": {
        "_old_address": {
          "type": "bytes",
          "id": 1,
          "options": {
            "deprecated": true
          }
        },
        "address": {
          "type": "string",
          "id": 2
        }
      }
    },
    "EthereumSignTx": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "nonce": {
          "type": "bytes",
          "id": 2,
          "options": {
            "default": ""
          }
        },
        "gas_price": {
          "rule": "required",
          "type": "bytes",
          "id": 3
        },
        "gas_limit": {
          "rule": "required",
          "type": "bytes",
          "id": 4
        },
        "to": {
          "type": "string",
          "id": 11,
          "options": {
            "default": ""
          }
        },
        "value": {
          "type": "bytes",
          "id": 6,
          "options": {
            "default": ""
          }
        },
        "data_initial_chunk": {
          "type": "bytes",
          "id": 7,
          "options": {
            "default": ""
          }
        },
        "data_length": {
          "type": "uint32",
          "id": 8,
          "options": {
            "default": 0
          }
        },
        "chain_id": {
          "rule": "required",
          "type": "uint64",
          "id": 9
        },
        "tx_type": {
          "type": "uint32",
          "id": 10
        },
        "definitions": {
          "type": "EthereumDefinitions",
          "id": 12
        }
      }
    },
    "EthereumSignTxEIP1559": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "nonce": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        },
        "max_gas_fee": {
          "rule": "required",
          "type": "bytes",
          "id": 3
        },
        "max_priority_fee": {
          "rule": "required",
          "type": "bytes",
          "id": 4
        },
        "gas_limit": {
          "rule": "required",
          "type": "bytes",
          "id": 5
        },
        "to": {
          "type": "string",
          "id": 6,
          "options": {
            "default": ""
          }
        },
        "value": {
          "rule": "required",
          "type": "bytes",
          "id": 7
        },
        "data_initial_chunk": {
          "type": "bytes",
          "id": 8,
          "options": {
            "default": ""
          }
        },
        "data_length": {
          "rule": "required",
          "type": "uint32",
          "id": 9
        },
        "chain_id": {
          "rule": "required",
          "type": "uint64",
          "id": 10
        },
        "access_list": {
          "rule": "repeated",
          "type": "EthereumAccessList",
          "id": 11
        },
        "definitions": {
          "type": "EthereumDefinitions",
          "id": 12
        }
      },
      "nested": {
        "EthereumAccessList": {
          "fields": {
            "address": {
              "rule": "required",
              "type": "string",
              "id": 1
            },
            "storage_keys": {
              "rule": "repeated",
              "type": "bytes",
              "id": 2
            }
          }
        }
      }
    },
    "EthereumTxRequest": {
      "fields": {
        "data_length": {
          "type": "uint32",
          "id": 1
        },
        "signature_v": {
          "type": "uint32",
          "id": 2
        },
        "signature_r": {
          "type": "bytes",
          "id": 3
        },
        "signature_s": {
          "type": "bytes",
          "id": 4
        }
      }
    },
    "EthereumTxAck": {
      "fields": {
        "data_chunk": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        }
      }
    },
    "EthereumSignMessage": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "message": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        },
        "encoded_network": {
          "type": "bytes",
          "id": 3
        }
      }
    },
    "EthereumMessageSignature": {
      "fields": {
        "signature": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        },
        "address": {
          "rule": "required",
          "type": "string",
          "id": 3
        }
      }
    },
    "EthereumVerifyMessage": {
      "fields": {
        "signature": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        },
        "message": {
          "rule": "required",
          "type": "bytes",
          "id": 3
        },
        "address": {
          "rule": "required",
          "type": "string",
          "id": 4
        }
      }
    },
    "EthereumSignTypedHash": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "domain_separator_hash": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        },
        "message_hash": {
          "type": "bytes",
          "id": 3
        },
        "encoded_network": {
          "type": "bytes",
          "id": 4
        }
      }
    },
    "EthereumTypedDataSignature": {
      "fields": {
        "signature": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        },
        "address": {
          "rule": "required",
          "type": "string",
          "id": 2
        }
      }
    },
    "FilecoinGetAddress": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "show_display": {
          "type": "bool",
          "id": 2
        },
        "testnet": {
          "type": "bool",
          "id": 3
        }
      }
    },
    "FilecoinAddress": {
      "fields": {
        "address": {
          "type": "string",
          "id": 1
        }
      }
    },
    "FilecoinSignTx": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "raw_tx": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        },
        "testnet": {
          "type": "bool",
          "id": 3
        }
      }
    },
    "FilecoinSignedTx": {
      "fields": {
        "signature": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        }
      }
    },
    "KaspaGetAddress": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "show_display": {
          "type": "bool",
          "id": 2
        },
        "prefix": {
          "type": "string",
          "id": 3,
          "options": {
            "default": "kaspa"
          }
        },
        "scheme": {
          "type": "string",
          "id": 4,
          "options": {
            "default": "schnorr"
          }
        },
        "use_tweak": {
          "type": "bool",
          "id": 5,
          "options": {
            "default": true
          }
        }
      }
    },
    "KaspaAddress": {
      "fields": {
        "address": {
          "rule": "required",
          "type": "string",
          "id": 1
        }
      }
    },
    "KaspaSignTx": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "raw_message": {
          "type": "bytes",
          "id": 2
        },
        "scheme": {
          "type": "string",
          "id": 3,
          "options": {
            "default": "schnorr"
          }
        },
        "prefix": {
          "type": "string",
          "id": 4,
          "options": {
            "default": "kaspa"
          }
        },
        "input_count": {
          "type": "uint32",
          "id": 5,
          "options": {
            "default": 1
          }
        },
        "use_tweak": {
          "type": "bool",
          "id": 6,
          "options": {
            "default": true
          }
        },
        "output_count": {
          "type": "uint32",
          "id": 7
        },
        "version": {
          "type": "uint32",
          "id": 8,
          "options": {
            "default": 0
          }
        },
        "lock_time": {
          "type": "uint64",
          "id": 9,
          "options": {
            "default": 0
          }
        },
        "subnetwork_id": {
          "type": "bytes",
          "id": 10
        },
        "gas": {
          "type": "uint64",
          "id": 11,
          "options": {
            "default": 0
          }
        },
        "payload_length": {
          "type": "uint32",
          "id": 12,
          "options": {
            "default": 0
          }
        }
      }
    },
    "KaspaTxInputRequest": {
      "fields": {
        "request_index": {
          "rule": "required",
          "type": "uint32",
          "id": 1
        },
        "signature": {
          "type": "bytes",
          "id": 2
        }
      }
    },
    "KaspaTxInputAck": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "raw_message": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        }
      }
    },
    "KaspaOutpoint": {
      "fields": {
        "tx_id": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        },
        "index": {
          "rule": "required",
          "type": "uint32",
          "id": 2
        }
      }
    },
    "KaspaInputScriptType": {
      "values": {
        "KASPA_SPEND_P2PK_SCHNORR": 0,
        "KASPA_SPEND_P2PK_ECDSA": 1
      }
    },
    "KaspaOutputScriptType": {
      "values": {
        "KASPA_PAYTOADDRESS": 0,
        "KASPA_PAYTOCHANGE": 1
      }
    },
    "KaspaRequestType": {
      "values": {
        "KASPA_TX_INPUT": 0,
        "KASPA_TX_OUTPUT": 1,
        "KASPA_TX_PAYLOAD": 2,
        "KASPA_TX_FINISHED": 3,
        "KASPA_TX_PREV_META": 4
      }
    },
    "KaspaTxRequestSignature": {
      "fields": {
        "signature_index": {
          "rule": "required",
          "type": "uint32",
          "id": 1
        },
        "signature": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        }
      }
    },
    "KaspaTxRequest": {
      "fields": {
        "request_type": {
          "rule": "required",
          "type": "KaspaRequestType",
          "id": 1
        },
        "request_index": {
          "type": "uint32",
          "id": 2
        },
        "signature": {
          "type": "KaspaTxRequestSignature",
          "id": 3
        },
        "request_payload_length": {
          "type": "uint32",
          "id": 4
        },
        "prev_tx_id": {
          "type": "bytes",
          "id": 5
        }
      }
    },
    "KaspaTxAckInput": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "previous_outpoint": {
          "rule": "required",
          "type": "KaspaOutpoint",
          "id": 2
        },
        "amount": {
          "rule": "required",
          "type": "uint64",
          "id": 3
        },
        "sequence": {
          "rule": "required",
          "type": "uint64",
          "id": 4
        },
        "sig_op_count": {
          "rule": "required",
          "type": "uint32",
          "id": 5
        },
        "script_type": {
          "type": "KaspaInputScriptType",
          "id": 6,
          "options": {
            "default": "KASPA_SPEND_P2PK_SCHNORR"
          }
        },
        "use_tweak": {
          "type": "bool",
          "id": 9,
          "options": {
            "default": true
          }
        }
      }
    },
    "KaspaTxAckOutput": {
      "fields": {
        "script_type": {
          "type": "KaspaOutputScriptType",
          "id": 1,
          "options": {
            "default": "KASPA_PAYTOADDRESS"
          }
        },
        "amount": {
          "rule": "required",
          "type": "uint64",
          "id": 2
        },
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 3,
          "options": {
            "packed": false
          }
        },
        "address": {
          "type": "string",
          "id": 4
        },
        "scheme": {
          "type": "string",
          "id": 7,
          "options": {
            "default": "schnorr"
          }
        },
        "use_tweak": {
          "type": "bool",
          "id": 8,
          "options": {
            "default": true
          }
        }
      }
    },
    "KaspaTxAckPayloadChunk": {
      "fields": {
        "payload_chunk": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        }
      }
    },
    "KaspaTxAckPrevMeta": {
      "fields": {
        "version": {
          "rule": "required",
          "type": "uint32",
          "id": 1
        },
        "input_count": {
          "rule": "required",
          "type": "uint32",
          "id": 2
        },
        "output_count": {
          "rule": "required",
          "type": "uint32",
          "id": 3
        },
        "lock_time": {
          "rule": "required",
          "type": "uint64",
          "id": 4
        },
        "subnetwork_id": {
          "rule": "required",
          "type": "bytes",
          "id": 5
        },
        "gas": {
          "rule": "required",
          "type": "uint64",
          "id": 6
        },
        "payload_length": {
          "rule": "required",
          "type": "uint32",
          "id": 7
        }
      }
    },
    "KaspaTxAckPrevInput": {
      "fields": {
        "previous_outpoint": {
          "rule": "required",
          "type": "KaspaOutpoint",
          "id": 1
        },
        "sequence": {
          "rule": "required",
          "type": "uint64",
          "id": 2
        }
      }
    },
    "KaspaTxAckPrevOutput": {
      "fields": {
        "amount": {
          "rule": "required",
          "type": "uint64",
          "id": 1
        },
        "script_version": {
          "rule": "required",
          "type": "uint32",
          "id": 2
        },
        "script_public_key": {
          "rule": "required",
          "type": "bytes",
          "id": 3
        }
      }
    },
    "KaspaSignedTx": {
      "fields": {
        "signature": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        }
      }
    },
    "LnurlAuth": {
      "fields": {
        "domain": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        },
        "data": {
          "rule": "required",
          "type": "bytes",
          "id": 3
        }
      }
    },
    "LnurlAuthResp": {
      "fields": {
        "publickey": {
          "type": "string",
          "id": 1
        },
        "path": {
          "type": "string",
          "id": 2
        },
        "signature": {
          "type": "bytes",
          "id": 3
        }
      }
    },
    "BackupType": {
      "values": {
        "Bip39": 0,
        "Slip39_Basic": 1,
        "Slip39_Advanced": 2
      }
    },
    "SafetyCheckLevel": {
      "values": {
        "Strict": 0,
        "PromptAlways": 1,
        "PromptTemporarily": 2
      }
    },
    "Initialize": {
      "fields": {
        "session_id": {
          "type": "bytes",
          "id": 1
        },
        "_skip_passphrase": {
          "type": "bool",
          "id": 2,
          "options": {
            "deprecated": true
          }
        },
        "derive_cardano": {
          "type": "bool",
          "id": 3
        },
        "passphrase_state": {
          "type": "string",
          "id": 8000
        },
        "is_contains_attach": {
          "type": "bool",
          "id": 8001
        }
      }
    },
    "GetFeatures": {
      "fields": {}
    },
    "OnekeyGetFeatures": {
      "fields": {}
    },
    "OneKeyDeviceType": {
      "values": {
        "CLASSIC": 0,
        "CLASSIC1S": 1,
        "MINI": 2,
        "TOUCH": 3,
        "PRO": 5,
        "PURE": 6
      }
    },
    "OneKeySeType": {
      "values": {
        "THD89": 0,
        "SE608A": 1
      }
    },
    "OneKeySEState": {
      "values": {
        "BOOT": 0,
        "APP": 1
      }
    },
    "Features": {
      "fields": {
        "vendor": {
          "type": "string",
          "id": 1
        },
        "major_version": {
          "rule": "required",
          "type": "uint32",
          "id": 2
        },
        "minor_version": {
          "rule": "required",
          "type": "uint32",
          "id": 3
        },
        "patch_version": {
          "rule": "required",
          "type": "uint32",
          "id": 4
        },
        "bootloader_mode": {
          "type": "bool",
          "id": 5
        },
        "device_id": {
          "type": "string",
          "id": 6
        },
        "pin_protection": {
          "type": "bool",
          "id": 7
        },
        "passphrase_protection": {
          "type": "bool",
          "id": 8
        },
        "language": {
          "type": "string",
          "id": 9
        },
        "label": {
          "type": "string",
          "id": 10
        },
        "initialized": {
          "type": "bool",
          "id": 12
        },
        "revision": {
          "type": "bytes",
          "id": 13
        },
        "bootloader_hash": {
          "type": "bytes",
          "id": 14
        },
        "imported": {
          "type": "bool",
          "id": 15
        },
        "unlocked": {
          "type": "bool",
          "id": 16
        },
        "_passphrase_cached": {
          "type": "bool",
          "id": 17,
          "options": {
            "deprecated": true
          }
        },
        "firmware_present": {
          "type": "bool",
          "id": 18
        },
        "needs_backup": {
          "type": "bool",
          "id": 19
        },
        "flags": {
          "type": "uint32",
          "id": 20
        },
        "model": {
          "type": "string",
          "id": 21
        },
        "fw_major": {
          "type": "uint32",
          "id": 22
        },
        "fw_minor": {
          "type": "uint32",
          "id": 23
        },
        "fw_patch": {
          "type": "uint32",
          "id": 24
        },
        "fw_vendor": {
          "type": "string",
          "id": 25
        },
        "unfinished_backup": {
          "type": "bool",
          "id": 27
        },
        "no_backup": {
          "type": "bool",
          "id": 28
        },
        "recovery_mode": {
          "type": "bool",
          "id": 29
        },
        "capabilities": {
          "rule": "repeated",
          "type": "Capability",
          "id": 30,
          "options": {
            "packed": false
          }
        },
        "backup_type": {
          "type": "BackupType",
          "id": 31
        },
        "sd_card_present": {
          "type": "bool",
          "id": 32
        },
        "sd_protection": {
          "type": "bool",
          "id": 33
        },
        "wipe_code_protection": {
          "type": "bool",
          "id": 34
        },
        "session_id": {
          "type": "bytes",
          "id": 35
        },
        "passphrase_always_on_device": {
          "type": "bool",
          "id": 36
        },
        "safety_checks": {
          "type": "SafetyCheckLevel",
          "id": 37
        },
        "auto_lock_delay_ms": {
          "type": "uint32",
          "id": 38
        },
        "display_rotation": {
          "type": "uint32",
          "id": 39
        },
        "experimental_features": {
          "type": "bool",
          "id": 40
        },
        "busy": {
          "type": "bool",
          "id": 41
        },
        "offset": {
          "type": "uint32",
          "id": 500
        },
        "ble_name": {
          "type": "string",
          "id": 501
        },
        "ble_ver": {
          "type": "string",
          "id": 502
        },
        "ble_enable": {
          "type": "bool",
          "id": 503
        },
        "se_enable": {
          "type": "bool",
          "id": 504
        },
        "se_ver": {
          "type": "string",
          "id": 506
        },
        "backup_only": {
          "type": "bool",
          "id": 507
        },
        "onekey_version": {
          "type": "string",
          "id": 508
        },
        "onekey_serial": {
          "type": "string",
          "id": 509
        },
        "bootloader_version": {
          "type": "string",
          "id": 510
        },
        "serial_no": {
          "type": "string",
          "id": 511
        },
        "spi_flash": {
          "type": "string",
          "id": 512
        },
        "initstates": {
          "type": "uint32",
          "id": 513
        },
        "NFT_voucher": {
          "type": "bytes",
          "id": 514
        },
        "cpu_info": {
          "type": "string",
          "id": 515
        },
        "pre_firmware": {
          "type": "string",
          "id": 516
        },
        "coin_switch": {
          "type": "uint32",
          "id": 517
        },
        "build_id": {
          "type": "bytes",
          "id": 518
        },
        "boardloader_version": {
          "type": "string",
          "id": 519
        },
        "battery_level": {
          "type": "uint32",
          "id": 520
        },
        "product": {
          "type": "string",
          "id": 521
        },
        "brightness_prcent": {
          "type": "uint32",
          "id": 522
        },
        "haptic_feedback": {
          "type": "bool",
          "id": 523
        },
        "auto_shutdown_delay_ms": {
          "type": "uint32",
          "id": 524
        },
        "onekey_device_type": {
          "type": "OneKeyDeviceType",
          "id": 600
        },
        "onekey_se_type": {
          "type": "OneKeySeType",
          "id": 601
        },
        "onekey_board_version": {
          "type": "string",
          "id": 602
        },
        "onekey_board_hash": {
          "type": "bytes",
          "id": 603
        },
        "onekey_boot_version": {
          "type": "string",
          "id": 604
        },
        "onekey_boot_hash": {
          "type": "bytes",
          "id": 605
        },
        "onekey_se01_version": {
          "type": "string",
          "id": 606
        },
        "onekey_se01_hash": {
          "type": "bytes",
          "id": 607
        },
        "onekey_se01_build_id": {
          "type": "string",
          "id": 608
        },
        "onekey_firmware_version": {
          "type": "string",
          "id": 609
        },
        "onekey_firmware_hash": {
          "type": "bytes",
          "id": 610
        },
        "onekey_firmware_build_id": {
          "type": "string",
          "id": 611
        },
        "onekey_serial_no": {
          "type": "string",
          "id": 612
        },
        "onekey_boot_build_id": {
          "type": "string",
          "id": 613
        },
        "onekey_ble_name": {
          "type": "string",
          "id": 614
        },
        "onekey_ble_version": {
          "type": "string",
          "id": 615
        },
        "onekey_ble_build_id": {
          "type": "string",
          "id": 616
        },
        "onekey_ble_hash": {
          "type": "bytes",
          "id": 617
        },
        "onekey_se02_version": {
          "type": "string",
          "id": 618
        },
        "onekey_se03_version": {
          "type": "string",
          "id": 619
        },
        "onekey_se04_version": {
          "type": "string",
          "id": 620
        },
        "onekey_se01_state": {
          "type": "OneKeySEState",
          "id": 621
        },
        "onekey_se02_state": {
          "type": "OneKeySEState",
          "id": 622
        },
        "onekey_se03_state": {
          "type": "OneKeySEState",
          "id": 623
        },
        "onekey_se04_state": {
          "type": "OneKeySEState",
          "id": 624
        },
        "attach_to_pin_user": {
          "type": "bool",
          "id": 625
        },
        "unlocked_attach_pin": {
          "type": "bool",
          "id": 626
        }
      },
      "nested": {
        "Capability": {
          "options": {
            "(has_bitcoin_only_values)": true
          },
          "values": {
            "Capability_Bitcoin": 1,
            "Capability_Bitcoin_like": 2,
            "Capability_Binance": 3,
            "Capability_Cardano": 4,
            "Capability_Crypto": 5,
            "Capability_EOS": 6,
            "Capability_Ethereum": 7,
            "Capability_Lisk": 8,
            "Capability_Monero": 9,
            "Capability_NEM": 10,
            "Capability_Ripple": 11,
            "Capability_Stellar": 12,
            "Capability_Tezos": 13,
            "Capability_U2F": 14,
            "Capability_Shamir": 15,
            "Capability_ShamirGroups": 16,
            "Capability_PassphraseEntry": 17,
            "Capability_EthereumTypedData": 1000,
            "Capability_AttachToPin": 8000
          }
        }
      }
    },
    "OnekeyFeatures": {
      "fields": {
        "onekey_device_type": {
          "type": "OneKeyDeviceType",
          "id": 1
        },
        "onekey_board_version": {
          "type": "string",
          "id": 2
        },
        "onekey_boot_version": {
          "type": "string",
          "id": 3
        },
        "onekey_firmware_version": {
          "type": "string",
          "id": 4
        },
        "onekey_board_hash": {
          "type": "bytes",
          "id": 5
        },
        "onekey_boot_hash": {
          "type": "bytes",
          "id": 6
        },
        "onekey_firmware_hash": {
          "type": "bytes",
          "id": 7
        },
        "onekey_board_build_id": {
          "type": "string",
          "id": 8
        },
        "onekey_boot_build_id": {
          "type": "string",
          "id": 9
        },
        "onekey_firmware_build_id": {
          "type": "string",
          "id": 10
        },
        "onekey_serial_no": {
          "type": "string",
          "id": 11
        },
        "onekey_ble_name": {
          "type": "string",
          "id": 12
        },
        "onekey_ble_version": {
          "type": "string",
          "id": 13
        },
        "onekey_ble_build_id": {
          "type": "string",
          "id": 14
        },
        "onekey_ble_hash": {
          "type": "bytes",
          "id": 15
        },
        "onekey_se_type": {
          "type": "OneKeySeType",
          "id": 16
        },
        "onekey_se01_state": {
          "type": "OneKeySEState",
          "id": 17
        },
        "onekey_se02_state": {
          "type": "OneKeySEState",
          "id": 18
        },
        "onekey_se03_state": {
          "type": "OneKeySEState",
          "id": 19
        },
        "onekey_se04_state": {
          "type": "OneKeySEState",
          "id": 20
        },
        "onekey_se01_version": {
          "type": "string",
          "id": 21
        },
        "onekey_se02_version": {
          "type": "string",
          "id": 22
        },
        "onekey_se03_version": {
          "type": "string",
          "id": 23
        },
        "onekey_se04_version": {
          "type": "string",
          "id": 24
        },
        "onekey_se01_hash": {
          "type": "bytes",
          "id": 25
        },
        "onekey_se02_hash": {
          "type": "bytes",
          "id": 26
        },
        "onekey_se03_hash": {
          "type": "bytes",
          "id": 27
        },
        "onekey_se04_hash": {
          "type": "bytes",
          "id": 28
        },
        "onekey_se01_build_id": {
          "type": "string",
          "id": 29
        },
        "onekey_se02_build_id": {
          "type": "string",
          "id": 30
        },
        "onekey_se03_build_id": {
          "type": "string",
          "id": 31
        },
        "onekey_se04_build_id": {
          "type": "string",
          "id": 32
        },
        "onekey_se01_boot_version": {
          "type": "string",
          "id": 33
        },
        "onekey_se02_boot_version": {
          "type": "string",
          "id": 34
        },
        "onekey_se03_boot_version": {
          "type": "string",
          "id": 35
        },
        "onekey_se04_boot_version": {
          "type": "string",
          "id": 36
        },
        "onekey_se01_boot_hash": {
          "type": "bytes",
          "id": 37
        },
        "onekey_se02_boot_hash": {
          "type": "bytes",
          "id": 38
        },
        "onekey_se03_boot_hash": {
          "type": "bytes",
          "id": 39
        },
        "onekey_se04_boot_hash": {
          "type": "bytes",
          "id": 40
        },
        "onekey_se01_boot_build_id": {
          "type": "string",
          "id": 41
        },
        "onekey_se02_boot_build_id": {
          "type": "string",
          "id": 42
        },
        "onekey_se03_boot_build_id": {
          "type": "string",
          "id": 43
        },
        "onekey_se04_boot_build_id": {
          "type": "string",
          "id": 44
        }
      }
    },
    "LockDevice": {
      "fields": {}
    },
    "EndSession": {
      "fields": {}
    },
    "ApplySettings": {
      "fields": {
        "language": {
          "type": "string",
          "id": 1
        },
        "label": {
          "type": "string",
          "id": 2
        },
        "use_passphrase": {
          "type": "bool",
          "id": 3
        },
        "homescreen": {
          "type": "bytes",
          "id": 4
        },
        "_passphrase_source": {
          "type": "uint32",
          "id": 5,
          "options": {
            "deprecated": true
          }
        },
        "auto_lock_delay_ms": {
          "type": "uint32",
          "id": 6
        },
        "display_rotation": {
          "type": "uint32",
          "id": 7
        },
        "passphrase_always_on_device": {
          "type": "bool",
          "id": 8
        },
        "safety_checks": {
          "type": "SafetyCheckLevel",
          "id": 9
        },
        "experimental_features": {
          "type": "bool",
          "id": 10
        },
        "use_ble": {
          "type": "bool",
          "id": 100
        },
        "use_se": {
          "type": "bool",
          "id": 101
        },
        "is_bixinapp": {
          "type": "bool",
          "id": 102
        },
        "fastpay_pin": {
          "type": "bool",
          "id": 103
        },
        "fastpay_confirm": {
          "type": "bool",
          "id": 104
        },
        "fastpay_money_limit": {
          "type": "uint64",
          "id": 105
        },
        "fastpay_times": {
          "type": "uint32",
          "id": 106
        },
        "auto_shutdown_delay_ms": {
          "type": "uint32",
          "id": 500
        },
        "change_brightness": {
          "type": "bool",
          "id": 501
        },
        "haptic_feedback": {
          "type": "bool",
          "id": 502
        }
      },
      "nested": {
        "ExportType": {
          "values": {
            "SeedEncExportType_NO": 0,
            "SeedEncExportType_YES": 1,
            "MnemonicPlainExportType_YES": 2
          }
        }
      }
    },
    "ApplyFlags": {
      "fields": {
        "flags": {
          "rule": "required",
          "type": "uint32",
          "id": 1
        }
      }
    },
    "ChangePin": {
      "fields": {
        "remove": {
          "type": "bool",
          "id": 1
        }
      }
    },
    "ChangeWipeCode": {
      "fields": {
        "remove": {
          "type": "bool",
          "id": 1
        }
      }
    },
    "SdProtect": {
      "fields": {
        "operation": {
          "rule": "required",
          "type": "SdProtectOperationType",
          "id": 1
        }
      },
      "nested": {
        "SdProtectOperationType": {
          "values": {
            "DISABLE": 0,
            "ENABLE": 1,
            "REFRESH": 2
          }
        }
      }
    },
    "Ping": {
      "fields": {
        "message": {
          "type": "string",
          "id": 1,
          "options": {
            "default": ""
          }
        },
        "button_protection": {
          "type": "bool",
          "id": 2
        }
      }
    },
    "Cancel": {
      "fields": {}
    },
    "GetEntropy": {
      "fields": {
        "size": {
          "rule": "required",
          "type": "uint32",
          "id": 1
        }
      }
    },
    "Entropy": {
      "fields": {
        "entropy": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        }
      }
    },
    "WipeDevice": {
      "fields": {}
    },
    "LoadDevice": {
      "fields": {
        "mnemonics": {
          "rule": "repeated",
          "type": "string",
          "id": 1
        },
        "pin": {
          "type": "string",
          "id": 3
        },
        "passphrase_protection": {
          "type": "bool",
          "id": 4
        },
        "language": {
          "type": "string",
          "id": 5,
          "options": {
            "default": "en-US"
          }
        },
        "label": {
          "type": "string",
          "id": 6
        },
        "skip_checksum": {
          "type": "bool",
          "id": 7
        },
        "u2f_counter": {
          "type": "uint32",
          "id": 8
        },
        "needs_backup": {
          "type": "bool",
          "id": 9
        },
        "no_backup": {
          "type": "bool",
          "id": 10
        }
      }
    },
    "ResetDevice": {
      "fields": {
        "display_random": {
          "type": "bool",
          "id": 1
        },
        "strength": {
          "type": "uint32",
          "id": 2,
          "options": {
            "default": 256
          }
        },
        "passphrase_protection": {
          "type": "bool",
          "id": 3
        },
        "pin_protection": {
          "type": "bool",
          "id": 4
        },
        "language": {
          "type": "string",
          "id": 5,
          "options": {
            "default": "en-US"
          }
        },
        "label": {
          "type": "string",
          "id": 6
        },
        "u2f_counter": {
          "type": "uint32",
          "id": 7
        },
        "skip_backup": {
          "type": "bool",
          "id": 8
        },
        "no_backup": {
          "type": "bool",
          "id": 9
        },
        "backup_type": {
          "type": "BackupType",
          "id": 10,
          "options": {
            "default": "Bip39"
          }
        }
      }
    },
    "BackupDevice": {
      "fields": {}
    },
    "EntropyRequest": {
      "fields": {}
    },
    "EntropyAck": {
      "fields": {
        "entropy": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        }
      }
    },
    "RecoveryDevice": {
      "fields": {
        "word_count": {
          "type": "uint32",
          "id": 1
        },
        "passphrase_protection": {
          "type": "bool",
          "id": 2
        },
        "pin_protection": {
          "type": "bool",
          "id": 3
        },
        "language": {
          "type": "string",
          "id": 4
        },
        "label": {
          "type": "string",
          "id": 5
        },
        "enforce_wordlist": {
          "type": "bool",
          "id": 6
        },
        "type": {
          "type": "RecoveryDeviceType",
          "id": 8
        },
        "u2f_counter": {
          "type": "uint32",
          "id": 9
        },
        "dry_run": {
          "type": "bool",
          "id": 10
        }
      },
      "nested": {
        "RecoveryDeviceType": {
          "values": {
            "RecoveryDeviceType_ScrambledWords": 0,
            "RecoveryDeviceType_Matrix": 1
          }
        }
      }
    },
    "WordRequest": {
      "fields": {
        "type": {
          "rule": "required",
          "type": "WordRequestType",
          "id": 1
        }
      },
      "nested": {
        "WordRequestType": {
          "values": {
            "WordRequestType_Plain": 0,
            "WordRequestType_Matrix9": 1,
            "WordRequestType_Matrix6": 2
          }
        }
      }
    },
    "WordAck": {
      "fields": {
        "word": {
          "rule": "required",
          "type": "string",
          "id": 1
        }
      }
    },
    "SetU2FCounter": {
      "fields": {
        "u2f_counter": {
          "rule": "required",
          "type": "uint32",
          "id": 1
        }
      }
    },
    "GetNextU2FCounter": {
      "fields": {}
    },
    "NextU2FCounter": {
      "fields": {
        "u2f_counter": {
          "rule": "required",
          "type": "uint32",
          "id": 1
        }
      }
    },
    "DoPreauthorized": {
      "fields": {}
    },
    "PreauthorizedRequest": {
      "fields": {}
    },
    "CancelAuthorization": {
      "fields": {}
    },
    "BixinSeedOperate": {
      "fields": {
        "type": {
          "rule": "required",
          "type": "SeedRequestType",
          "id": 1
        },
        "seed_importData": {
          "type": "bytes",
          "id": 2
        }
      },
      "nested": {
        "SeedRequestType": {
          "values": {
            "SeedRequestType_Gen": 0,
            "SeedRequestType_EncExport": 1,
            "SeedRequestType_EncImport": 2
          }
        }
      }
    },
    "BixinMessageSE": {
      "fields": {
        "inputmessage": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        }
      }
    },
    "BixinOutMessageSE": {
      "fields": {
        "outmessage": {
          "type": "bytes",
          "id": 1
        }
      }
    },
    "DeviceBackToBoot": {
      "fields": {}
    },
    "BixinBackupRequest": {
      "fields": {}
    },
    "BixinBackupAck": {
      "fields": {
        "data": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        }
      }
    },
    "BixinRestoreRequest": {
      "fields": {
        "data": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        },
        "language": {
          "type": "string",
          "id": 2
        },
        "label": {
          "type": "string",
          "id": 3
        },
        "passphrase_protection": {
          "type": "bool",
          "id": 4
        }
      }
    },
    "BixinRestoreAck": {
      "fields": {
        "data": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        }
      }
    },
    "BixinVerifyDeviceRequest": {
      "fields": {
        "data": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        }
      }
    },
    "BixinVerifyDeviceAck": {
      "fields": {
        "cert": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        },
        "signature": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        }
      }
    },
    "BixinWhiteListRequest": {
      "fields": {
        "type": {
          "rule": "required",
          "type": "WL_OperationType",
          "id": 1
        },
        "addr_in": {
          "type": "string",
          "id": 2
        }
      },
      "nested": {
        "WL_OperationType": {
          "values": {
            "WL_OperationType_Add": 0,
            "WL_OperationType_Delete": 1,
            "WL_OperationType_Inquire": 2
          }
        }
      }
    },
    "BixinWhiteListAck": {
      "fields": {
        "address": {
          "rule": "repeated",
          "type": "string",
          "id": 1
        }
      }
    },
    "BixinLoadDevice": {
      "fields": {
        "mnemonics": {
          "rule": "required",
          "type": "string",
          "id": 1
        },
        "language": {
          "type": "string",
          "id": 5,
          "options": {
            "default": "en-US"
          }
        },
        "label": {
          "type": "string",
          "id": 6
        },
        "skip_checksum": {
          "type": "bool",
          "id": 7
        }
      }
    },
    "BixinBackupDevice": {
      "fields": {}
    },
    "BixinBackupDeviceAck": {
      "fields": {
        "mnemonics": {
          "rule": "required",
          "type": "string",
          "id": 1
        }
      }
    },
    "DeviceInfoSettings": {
      "fields": {
        "serial_no": {
          "type": "string",
          "id": 1
        },
        "cpu_info": {
          "type": "string",
          "id": 2
        },
        "pre_firmware": {
          "type": "string",
          "id": 3
        }
      }
    },
    "GetDeviceInfo": {
      "fields": {}
    },
    "DeviceInfo": {
      "fields": {
        "serial_no": {
          "type": "string",
          "id": 1
        },
        "spiFlash_info": {
          "type": "string",
          "id": 2
        },
        "SE_info": {
          "type": "string",
          "id": 3
        },
        "NFT_voucher": {
          "type": "bytes",
          "id": 4
        },
        "cpu_info": {
          "type": "string",
          "id": 5
        },
        "pre_firmware": {
          "type": "string",
          "id": 6
        }
      }
    },
    "ReadSEPublicKey": {
      "fields": {}
    },
    "SEPublicKey": {
      "fields": {
        "public_key": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        }
      }
    },
    "WriteSEPublicCert": {
      "fields": {
        "public_cert": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        }
      }
    },
    "ReadSEPublicCert": {
      "fields": {}
    },
    "SEPublicCert": {
      "fields": {
        "public_cert": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        }
      }
    },
    "SpiFlashWrite": {
      "fields": {
        "address": {
          "rule": "required",
          "type": "uint32",
          "id": 1
        },
        "data": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        }
      }
    },
    "SpiFlashRead": {
      "fields": {
        "address": {
          "rule": "required",
          "type": "uint32",
          "id": 1
        },
        "len": {
          "rule": "required",
          "type": "uint32",
          "id": 2
        }
      }
    },
    "SpiFlashData": {
      "fields": {
        "data": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        }
      }
    },
    "SESignMessage": {
      "fields": {
        "message": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        }
      }
    },
    "SEMessageSignature": {
      "fields": {
        "signature": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        }
      }
    },
    "ResourceUpload": {
      "fields": {
        "extension": {
          "rule": "required",
          "type": "string",
          "id": 1
        },
        "data_length": {
          "rule": "required",
          "type": "uint32",
          "id": 2
        },
        "res_type": {
          "rule": "required",
          "type": "ResourceType",
          "id": 3
        },
        "nft_meta_data": {
          "type": "bytes",
          "id": 4
        },
        "zoom_data_length": {
          "rule": "required",
          "type": "uint32",
          "id": 5
        },
        "file_name_no_ext": {
          "type": "string",
          "id": 6
        },
        "blur_data_length": {
          "type": "uint32",
          "id": 7
        }
      },
      "nested": {
        "ResourceType": {
          "values": {
            "WallPaper": 0,
            "Nft": 1
          }
        }
      }
    },
    "ZoomRequest": {
      "fields": {
        "offset": {
          "type": "uint32",
          "id": 1
        },
        "data_length": {
          "rule": "required",
          "type": "uint32",
          "id": 2
        }
      }
    },
    "BlurRequest": {
      "fields": {
        "offset": {
          "type": "uint32",
          "id": 1
        },
        "data_length": {
          "rule": "required",
          "type": "uint32",
          "id": 2
        }
      }
    },
    "ResourceRequest": {
      "fields": {
        "offset": {
          "type": "uint32",
          "id": 1
        },
        "data_length": {
          "rule": "required",
          "type": "uint32",
          "id": 2
        }
      }
    },
    "ResourceAck": {
      "fields": {
        "data_chunk": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        },
        "hash": {
          "type": "bytes",
          "id": 2
        }
      }
    },
    "ResourceUpdate": {
      "fields": {
        "file_name": {
          "rule": "required",
          "type": "string",
          "id": 1
        },
        "data_length": {
          "rule": "required",
          "type": "uint32",
          "id": 2
        },
        "initial_data_chunk": {
          "rule": "required",
          "type": "bytes",
          "id": 3
        },
        "hash": {
          "type": "bytes",
          "id": 4
        }
      }
    },
    "NFTWriteInfo": {
      "fields": {
        "index": {
          "rule": "required",
          "type": "uint32",
          "id": 1
        },
        "width": {
          "rule": "required",
          "type": "uint32",
          "id": 2
        },
        "height": {
          "rule": "required",
          "type": "uint32",
          "id": 3
        },
        "name_zh": {
          "type": "string",
          "id": 4
        },
        "name_en": {
          "type": "string",
          "id": 5
        }
      }
    },
    "NFTWriteData": {
      "fields": {
        "index": {
          "rule": "required",
          "type": "uint32",
          "id": 1
        },
        "data": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        },
        "offset": {
          "rule": "required",
          "type": "uint32",
          "id": 3
        }
      }
    },
    "RebootToBootloader": {
      "fields": {}
    },
    "RebootToBoardloader": {
      "fields": {}
    },
    "ListResDir": {
      "fields": {
        "path": {
          "rule": "required",
          "type": "string",
          "id": 1
        }
      }
    },
    "FileInfoList": {
      "fields": {
        "files": {
          "rule": "repeated",
          "type": "FileInfo",
          "id": 1
        }
      },
      "nested": {
        "FileInfo": {
          "fields": {
            "name": {
              "rule": "required",
              "type": "string",
              "id": 1
            },
            "size": {
              "rule": "required",
              "type": "uint64",
              "id": 2
            }
          }
        }
      }
    },
    "DeviceEraseSector": {
      "fields": {
        "sector": {
          "rule": "required",
          "type": "uint32",
          "id": 1
        }
      }
    },
    "UnLockDevice": {
      "fields": {}
    },
    "UnLockDeviceResponse": {
      "fields": {
        "unlocked": {
          "type": "bool",
          "id": 1
        },
        "unlocked_attach_pin": {
          "type": "bool",
          "id": 2
        },
        "passphrase_protection": {
          "type": "bool",
          "id": 3
        }
      }
    },
    "GetPassphraseState": {
      "fields": {
        "passphrase_state": {
          "type": "string",
          "id": 1
        }
      }
    },
    "PassphraseState": {
      "fields": {
        "passphrase_state": {
          "type": "string",
          "id": 1
        },
        "session_id": {
          "type": "bytes",
          "id": 2
        },
        "unlocked_attach_pin": {
          "type": "bool",
          "id": 3
        }
      }
    },
    "MoneroTransactionSourceEntry": {
      "fields": {
        "outputs": {
          "rule": "repeated",
          "type": "MoneroOutputEntry",
          "id": 1
        },
        "real_output": {
          "type": "uint64",
          "id": 2
        },
        "real_out_tx_key": {
          "type": "bytes",
          "id": 3
        },
        "real_out_additional_tx_keys": {
          "rule": "repeated",
          "type": "bytes",
          "id": 4
        },
        "real_output_in_tx_index": {
          "type": "uint64",
          "id": 5
        },
        "amount": {
          "type": "uint64",
          "id": 6
        },
        "rct": {
          "type": "bool",
          "id": 7
        },
        "mask": {
          "type": "bytes",
          "id": 8
        },
        "multisig_kLRki": {
          "type": "MoneroMultisigKLRki",
          "id": 9
        },
        "subaddr_minor": {
          "type": "uint32",
          "id": 10
        }
      },
      "nested": {
        "MoneroOutputEntry": {
          "fields": {
            "idx": {
              "type": "uint64",
              "id": 1
            },
            "key": {
              "type": "MoneroRctKeyPublic",
              "id": 2
            }
          },
          "nested": {
            "MoneroRctKeyPublic": {
              "fields": {
                "dest": {
                  "type": "bytes",
                  "id": 1
                },
                "commitment": {
                  "type": "bytes",
                  "id": 2
                }
              }
            }
          }
        },
        "MoneroMultisigKLRki": {
          "fields": {
            "K": {
              "type": "bytes",
              "id": 1
            },
            "L": {
              "type": "bytes",
              "id": 2
            },
            "R": {
              "type": "bytes",
              "id": 3
            },
            "ki": {
              "type": "bytes",
              "id": 4
            }
          }
        }
      }
    },
    "MoneroTransactionDestinationEntry": {
      "fields": {
        "amount": {
          "type": "uint64",
          "id": 1
        },
        "addr": {
          "type": "MoneroAccountPublicAddress",
          "id": 2
        },
        "is_subaddress": {
          "type": "bool",
          "id": 3
        },
        "original": {
          "type": "bytes",
          "id": 4
        },
        "is_integrated": {
          "type": "bool",
          "id": 5
        }
      },
      "nested": {
        "MoneroAccountPublicAddress": {
          "fields": {
            "spend_public_key": {
              "type": "bytes",
              "id": 1
            },
            "view_public_key": {
              "type": "bytes",
              "id": 2
            }
          }
        }
      }
    },
    "MoneroTransactionRsigData": {
      "fields": {
        "rsig_type": {
          "type": "uint32",
          "id": 1
        },
        "offload_type": {
          "type": "uint32",
          "id": 2
        },
        "grouping": {
          "rule": "repeated",
          "type": "uint64",
          "id": 3,
          "options": {
            "packed": false
          }
        },
        "mask": {
          "type": "bytes",
          "id": 4
        },
        "rsig": {
          "type": "bytes",
          "id": 5
        },
        "rsig_parts": {
          "rule": "repeated",
          "type": "bytes",
          "id": 6
        },
        "bp_version": {
          "type": "uint32",
          "id": 7
        }
      }
    },
    "MoneroGetAddress": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "show_display": {
          "type": "bool",
          "id": 2
        },
        "network_type": {
          "type": "uint32",
          "id": 3
        },
        "account": {
          "type": "uint32",
          "id": 4
        },
        "minor": {
          "type": "uint32",
          "id": 5
        },
        "payment_id": {
          "type": "bytes",
          "id": 6
        }
      }
    },
    "MoneroAddress": {
      "fields": {
        "address": {
          "type": "bytes",
          "id": 1
        }
      }
    },
    "MoneroGetWatchKey": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "network_type": {
          "type": "uint32",
          "id": 2
        }
      }
    },
    "MoneroWatchKey": {
      "fields": {
        "watch_key": {
          "type": "bytes",
          "id": 1
        },
        "address": {
          "type": "bytes",
          "id": 2
        }
      }
    },
    "MoneroTransactionInitRequest": {
      "fields": {
        "version": {
          "type": "uint32",
          "id": 1
        },
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 2,
          "options": {
            "packed": false
          }
        },
        "network_type": {
          "type": "uint32",
          "id": 3
        },
        "tsx_data": {
          "type": "MoneroTransactionData",
          "id": 4
        }
      },
      "nested": {
        "MoneroTransactionData": {
          "fields": {
            "version": {
              "type": "uint32",
              "id": 1
            },
            "payment_id": {
              "type": "bytes",
              "id": 2
            },
            "unlock_time": {
              "type": "uint64",
              "id": 3
            },
            "outputs": {
              "rule": "repeated",
              "type": "MoneroTransactionDestinationEntry",
              "id": 4
            },
            "change_dts": {
              "type": "MoneroTransactionDestinationEntry",
              "id": 5
            },
            "num_inputs": {
              "type": "uint32",
              "id": 6
            },
            "mixin": {
              "type": "uint32",
              "id": 7
            },
            "fee": {
              "type": "uint64",
              "id": 8
            },
            "account": {
              "type": "uint32",
              "id": 9
            },
            "minor_indices": {
              "rule": "repeated",
              "type": "uint32",
              "id": 10,
              "options": {
                "packed": false
              }
            },
            "rsig_data": {
              "type": "MoneroTransactionRsigData",
              "id": 11
            },
            "integrated_indices": {
              "rule": "repeated",
              "type": "uint32",
              "id": 12,
              "options": {
                "packed": false
              }
            },
            "client_version": {
              "type": "uint32",
              "id": 13
            },
            "hard_fork": {
              "type": "uint32",
              "id": 14
            },
            "monero_version": {
              "type": "bytes",
              "id": 15
            }
          }
        }
      }
    },
    "MoneroTransactionInitAck": {
      "fields": {
        "hmacs": {
          "rule": "repeated",
          "type": "bytes",
          "id": 1
        },
        "rsig_data": {
          "type": "MoneroTransactionRsigData",
          "id": 2
        }
      }
    },
    "MoneroTransactionSetInputRequest": {
      "fields": {
        "src_entr": {
          "type": "MoneroTransactionSourceEntry",
          "id": 1
        }
      }
    },
    "MoneroTransactionSetInputAck": {
      "fields": {
        "vini": {
          "type": "bytes",
          "id": 1
        },
        "vini_hmac": {
          "type": "bytes",
          "id": 2
        },
        "pseudo_out": {
          "type": "bytes",
          "id": 3
        },
        "pseudo_out_hmac": {
          "type": "bytes",
          "id": 4
        },
        "pseudo_out_alpha": {
          "type": "bytes",
          "id": 5
        },
        "spend_key": {
          "type": "bytes",
          "id": 6
        }
      }
    },
    "MoneroTransactionInputsPermutationRequest": {
      "fields": {
        "perm": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        }
      }
    },
    "MoneroTransactionInputsPermutationAck": {
      "fields": {}
    },
    "MoneroTransactionInputViniRequest": {
      "fields": {
        "src_entr": {
          "type": "MoneroTransactionSourceEntry",
          "id": 1
        },
        "vini": {
          "type": "bytes",
          "id": 2
        },
        "vini_hmac": {
          "type": "bytes",
          "id": 3
        },
        "pseudo_out": {
          "type": "bytes",
          "id": 4
        },
        "pseudo_out_hmac": {
          "type": "bytes",
          "id": 5
        },
        "orig_idx": {
          "type": "uint32",
          "id": 6
        }
      }
    },
    "MoneroTransactionInputViniAck": {
      "fields": {}
    },
    "MoneroTransactionAllInputsSetRequest": {
      "fields": {}
    },
    "MoneroTransactionAllInputsSetAck": {
      "fields": {
        "rsig_data": {
          "type": "MoneroTransactionRsigData",
          "id": 1
        }
      }
    },
    "MoneroTransactionSetOutputRequest": {
      "fields": {
        "dst_entr": {
          "type": "MoneroTransactionDestinationEntry",
          "id": 1
        },
        "dst_entr_hmac": {
          "type": "bytes",
          "id": 2
        },
        "rsig_data": {
          "type": "MoneroTransactionRsigData",
          "id": 3
        },
        "is_offloaded_bp": {
          "type": "bool",
          "id": 4
        }
      }
    },
    "MoneroTransactionSetOutputAck": {
      "fields": {
        "tx_out": {
          "type": "bytes",
          "id": 1
        },
        "vouti_hmac": {
          "type": "bytes",
          "id": 2
        },
        "rsig_data": {
          "type": "MoneroTransactionRsigData",
          "id": 3
        },
        "out_pk": {
          "type": "bytes",
          "id": 4
        },
        "ecdh_info": {
          "type": "bytes",
          "id": 5
        }
      }
    },
    "MoneroTransactionAllOutSetRequest": {
      "fields": {
        "rsig_data": {
          "type": "MoneroTransactionRsigData",
          "id": 1
        }
      }
    },
    "MoneroTransactionAllOutSetAck": {
      "fields": {
        "extra": {
          "type": "bytes",
          "id": 1
        },
        "tx_prefix_hash": {
          "type": "bytes",
          "id": 2
        },
        "rv": {
          "type": "MoneroRingCtSig",
          "id": 4
        },
        "full_message_hash": {
          "type": "bytes",
          "id": 5
        }
      },
      "nested": {
        "MoneroRingCtSig": {
          "fields": {
            "txn_fee": {
              "type": "uint64",
              "id": 1
            },
            "message": {
              "type": "bytes",
              "id": 2
            },
            "rv_type": {
              "type": "uint32",
              "id": 3
            }
          }
        }
      }
    },
    "MoneroTransactionSignInputRequest": {
      "fields": {
        "src_entr": {
          "type": "MoneroTransactionSourceEntry",
          "id": 1
        },
        "vini": {
          "type": "bytes",
          "id": 2
        },
        "vini_hmac": {
          "type": "bytes",
          "id": 3
        },
        "pseudo_out": {
          "type": "bytes",
          "id": 4
        },
        "pseudo_out_hmac": {
          "type": "bytes",
          "id": 5
        },
        "pseudo_out_alpha": {
          "type": "bytes",
          "id": 6
        },
        "spend_key": {
          "type": "bytes",
          "id": 7
        },
        "orig_idx": {
          "type": "uint32",
          "id": 8
        }
      }
    },
    "MoneroTransactionSignInputAck": {
      "fields": {
        "signature": {
          "type": "bytes",
          "id": 1
        },
        "pseudo_out": {
          "type": "bytes",
          "id": 2
        }
      }
    },
    "MoneroTransactionFinalRequest": {
      "fields": {}
    },
    "MoneroTransactionFinalAck": {
      "fields": {
        "cout_key": {
          "type": "bytes",
          "id": 1
        },
        "salt": {
          "type": "bytes",
          "id": 2
        },
        "rand_mult": {
          "type": "bytes",
          "id": 3
        },
        "tx_enc_keys": {
          "type": "bytes",
          "id": 4
        },
        "opening_key": {
          "type": "bytes",
          "id": 5
        }
      }
    },
    "MoneroKeyImageExportInitRequest": {
      "fields": {
        "num": {
          "type": "uint64",
          "id": 1
        },
        "hash": {
          "type": "bytes",
          "id": 2
        },
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 3,
          "options": {
            "packed": false
          }
        },
        "network_type": {
          "type": "uint32",
          "id": 4
        },
        "subs": {
          "rule": "repeated",
          "type": "MoneroSubAddressIndicesList",
          "id": 5
        }
      },
      "nested": {
        "MoneroSubAddressIndicesList": {
          "fields": {
            "account": {
              "type": "uint32",
              "id": 1
            },
            "minor_indices": {
              "rule": "repeated",
              "type": "uint32",
              "id": 2,
              "options": {
                "packed": false
              }
            }
          }
        }
      }
    },
    "MoneroKeyImageExportInitAck": {
      "fields": {}
    },
    "MoneroKeyImageSyncStepRequest": {
      "fields": {
        "tdis": {
          "rule": "repeated",
          "type": "MoneroTransferDetails",
          "id": 1
        }
      },
      "nested": {
        "MoneroTransferDetails": {
          "fields": {
            "out_key": {
              "type": "bytes",
              "id": 1
            },
            "tx_pub_key": {
              "type": "bytes",
              "id": 2
            },
            "additional_tx_pub_keys": {
              "rule": "repeated",
              "type": "bytes",
              "id": 3
            },
            "internal_output_index": {
              "type": "uint64",
              "id": 4
            },
            "sub_addr_major": {
              "type": "uint32",
              "id": 5
            },
            "sub_addr_minor": {
              "type": "uint32",
              "id": 6
            }
          }
        }
      }
    },
    "MoneroKeyImageSyncStepAck": {
      "fields": {
        "kis": {
          "rule": "repeated",
          "type": "MoneroExportedKeyImage",
          "id": 1
        }
      },
      "nested": {
        "MoneroExportedKeyImage": {
          "fields": {
            "iv": {
              "type": "bytes",
              "id": 1
            },
            "blob": {
              "type": "bytes",
              "id": 3
            }
          }
        }
      }
    },
    "MoneroKeyImageSyncFinalRequest": {
      "fields": {}
    },
    "MoneroKeyImageSyncFinalAck": {
      "fields": {
        "enc_key": {
          "type": "bytes",
          "id": 1
        }
      }
    },
    "MoneroGetTxKeyRequest": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "network_type": {
          "type": "uint32",
          "id": 2
        },
        "salt1": {
          "type": "bytes",
          "id": 3
        },
        "salt2": {
          "type": "bytes",
          "id": 4
        },
        "tx_enc_keys": {
          "type": "bytes",
          "id": 5
        },
        "tx_prefix_hash": {
          "type": "bytes",
          "id": 6
        },
        "reason": {
          "type": "uint32",
          "id": 7
        },
        "view_public_key": {
          "type": "bytes",
          "id": 8
        }
      }
    },
    "MoneroGetTxKeyAck": {
      "fields": {
        "salt": {
          "type": "bytes",
          "id": 1
        },
        "tx_keys": {
          "type": "bytes",
          "id": 2
        },
        "tx_derivations": {
          "type": "bytes",
          "id": 3
        }
      }
    },
    "MoneroLiveRefreshStartRequest": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "network_type": {
          "type": "uint32",
          "id": 2
        }
      }
    },
    "MoneroLiveRefreshStartAck": {
      "fields": {}
    },
    "MoneroLiveRefreshStepRequest": {
      "fields": {
        "out_key": {
          "type": "bytes",
          "id": 1
        },
        "recv_deriv": {
          "type": "bytes",
          "id": 2
        },
        "real_out_idx": {
          "type": "uint64",
          "id": 3
        },
        "sub_addr_major": {
          "type": "uint32",
          "id": 4
        },
        "sub_addr_minor": {
          "type": "uint32",
          "id": 5
        }
      }
    },
    "MoneroLiveRefreshStepAck": {
      "fields": {
        "salt": {
          "type": "bytes",
          "id": 1
        },
        "key_image": {
          "type": "bytes",
          "id": 2
        }
      }
    },
    "MoneroLiveRefreshFinalRequest": {
      "fields": {}
    },
    "MoneroLiveRefreshFinalAck": {
      "fields": {}
    },
    "DebugMoneroDiagRequest": {
      "fields": {
        "ins": {
          "type": "uint64",
          "id": 1
        },
        "p1": {
          "type": "uint64",
          "id": 2
        },
        "p2": {
          "type": "uint64",
          "id": 3
        },
        "pd": {
          "rule": "repeated",
          "type": "uint64",
          "id": 4,
          "options": {
            "packed": false
          }
        },
        "data1": {
          "type": "bytes",
          "id": 5
        },
        "data2": {
          "type": "bytes",
          "id": 6
        }
      }
    },
    "DebugMoneroDiagAck": {
      "fields": {
        "ins": {
          "type": "uint64",
          "id": 1
        },
        "p1": {
          "type": "uint64",
          "id": 2
        },
        "p2": {
          "type": "uint64",
          "id": 3
        },
        "pd": {
          "rule": "repeated",
          "type": "uint64",
          "id": 4,
          "options": {
            "packed": false
          }
        },
        "data1": {
          "type": "bytes",
          "id": 5
        },
        "data2": {
          "type": "bytes",
          "id": 6
        }
      }
    },
    "NearGetAddress": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "show_display": {
          "type": "bool",
          "id": 2
        }
      }
    },
    "NearAddress": {
      "fields": {
        "address": {
          "type": "string",
          "id": 1
        }
      }
    },
    "NearSignTx": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "raw_tx": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        }
      }
    },
    "NearSignedTx": {
      "fields": {
        "signature": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        }
      }
    },
    "NEMGetAddress": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "network": {
          "type": "uint32",
          "id": 2
        },
        "show_display": {
          "type": "bool",
          "id": 3
        }
      }
    },
    "NEMAddress": {
      "fields": {
        "address": {
          "rule": "required",
          "type": "string",
          "id": 1
        }
      }
    },
    "NEMSignTx": {
      "fields": {
        "transaction": {
          "type": "NEMTransactionCommon",
          "id": 1
        },
        "multisig": {
          "type": "NEMTransactionCommon",
          "id": 2
        },
        "transfer": {
          "type": "NEMTransfer",
          "id": 3
        },
        "cosigning": {
          "type": "bool",
          "id": 4
        },
        "provision_namespace": {
          "type": "NEMProvisionNamespace",
          "id": 5
        },
        "mosaic_creation": {
          "type": "NEMMosaicCreation",
          "id": 6
        },
        "supply_change": {
          "type": "NEMMosaicSupplyChange",
          "id": 7
        },
        "aggregate_modification": {
          "type": "NEMAggregateModification",
          "id": 8
        },
        "importance_transfer": {
          "type": "NEMImportanceTransfer",
          "id": 9
        }
      },
      "nested": {
        "NEMTransactionCommon": {
          "fields": {
            "address_n": {
              "rule": "repeated",
              "type": "uint32",
              "id": 1,
              "options": {
                "packed": false
              }
            },
            "network": {
              "type": "uint32",
              "id": 2
            },
            "timestamp": {
              "type": "uint32",
              "id": 3
            },
            "fee": {
              "type": "uint64",
              "id": 4
            },
            "deadline": {
              "type": "uint32",
              "id": 5
            },
            "signer": {
              "type": "bytes",
              "id": 6
            }
          }
        },
        "NEMTransfer": {
          "fields": {
            "recipient": {
              "type": "string",
              "id": 1
            },
            "amount": {
              "type": "uint64",
              "id": 2
            },
            "payload": {
              "type": "bytes",
              "id": 3
            },
            "public_key": {
              "type": "bytes",
              "id": 4
            },
            "mosaics": {
              "rule": "repeated",
              "type": "NEMMosaic",
              "id": 5
            }
          },
          "nested": {
            "NEMMosaic": {
              "fields": {
                "namespace": {
                  "type": "string",
                  "id": 1
                },
                "mosaic": {
                  "type": "string",
                  "id": 2
                },
                "quantity": {
                  "type": "uint64",
                  "id": 3
                }
              }
            }
          }
        },
        "NEMProvisionNamespace": {
          "fields": {
            "namespace": {
              "type": "string",
              "id": 1
            },
            "parent": {
              "type": "string",
              "id": 2
            },
            "sink": {
              "type": "string",
              "id": 3
            },
            "fee": {
              "type": "uint64",
              "id": 4
            }
          }
        },
        "NEMMosaicCreation": {
          "fields": {
            "definition": {
              "type": "NEMMosaicDefinition",
              "id": 1
            },
            "sink": {
              "type": "string",
              "id": 2
            },
            "fee": {
              "type": "uint64",
              "id": 3
            }
          },
          "nested": {
            "NEMMosaicDefinition": {
              "fields": {
                "name": {
                  "type": "string",
                  "id": 1
                },
                "ticker": {
                  "type": "string",
                  "id": 2
                },
                "namespace": {
                  "type": "string",
                  "id": 3
                },
                "mosaic": {
                  "type": "string",
                  "id": 4
                },
                "divisibility": {
                  "type": "uint32",
                  "id": 5
                },
                "levy": {
                  "type": "NEMMosaicLevy",
                  "id": 6
                },
                "fee": {
                  "type": "uint64",
                  "id": 7
                },
                "levy_address": {
                  "type": "string",
                  "id": 8
                },
                "levy_namespace": {
                  "type": "string",
                  "id": 9
                },
                "levy_mosaic": {
                  "type": "string",
                  "id": 10
                },
                "supply": {
                  "type": "uint64",
                  "id": 11
                },
                "mutable_supply": {
                  "type": "bool",
                  "id": 12
                },
                "transferable": {
                  "type": "bool",
                  "id": 13
                },
                "description": {
                  "type": "string",
                  "id": 14
                },
                "networks": {
                  "rule": "repeated",
                  "type": "uint32",
                  "id": 15,
                  "options": {
                    "packed": false
                  }
                }
              },
              "nested": {
                "NEMMosaicLevy": {
                  "values": {
                    "MosaicLevy_Absolute": 1,
                    "MosaicLevy_Percentile": 2
                  }
                }
              }
            }
          }
        },
        "NEMMosaicSupplyChange": {
          "fields": {
            "namespace": {
              "type": "string",
              "id": 1
            },
            "mosaic": {
              "type": "string",
              "id": 2
            },
            "type": {
              "type": "NEMSupplyChangeType",
              "id": 3
            },
            "delta": {
              "type": "uint64",
              "id": 4
            }
          },
          "nested": {
            "NEMSupplyChangeType": {
              "values": {
                "SupplyChange_Increase": 1,
                "SupplyChange_Decrease": 2
              }
            }
          }
        },
        "NEMAggregateModification": {
          "fields": {
            "modifications": {
              "rule": "repeated",
              "type": "NEMCosignatoryModification",
              "id": 1
            },
            "relative_change": {
              "type": "sint32",
              "id": 2
            }
          },
          "nested": {
            "NEMCosignatoryModification": {
              "fields": {
                "type": {
                  "type": "NEMModificationType",
                  "id": 1
                },
                "public_key": {
                  "type": "bytes",
                  "id": 2
                }
              },
              "nested": {
                "NEMModificationType": {
                  "values": {
                    "CosignatoryModification_Add": 1,
                    "CosignatoryModification_Delete": 2
                  }
                }
              }
            }
          }
        },
        "NEMImportanceTransfer": {
          "fields": {
            "mode": {
              "type": "NEMImportanceTransferMode",
              "id": 1
            },
            "public_key": {
              "type": "bytes",
              "id": 2
            }
          },
          "nested": {
            "NEMImportanceTransferMode": {
              "values": {
                "ImportanceTransfer_Activate": 1,
                "ImportanceTransfer_Deactivate": 2
              }
            }
          }
        }
      }
    },
    "NEMSignedTx": {
      "fields": {
        "data": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        },
        "signature": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        }
      }
    },
    "NEMDecryptMessage": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "network": {
          "type": "uint32",
          "id": 2
        },
        "public_key": {
          "type": "bytes",
          "id": 3
        },
        "payload": {
          "type": "bytes",
          "id": 4
        }
      }
    },
    "NEMDecryptedMessage": {
      "fields": {
        "payload": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        }
      }
    },
    "NeoGetAddress": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "show_display": {
          "type": "bool",
          "id": 2
        }
      }
    },
    "NeoAddress": {
      "fields": {
        "address": {
          "type": "string",
          "id": 1
        },
        "public_key": {
          "type": "bytes",
          "id": 2
        }
      }
    },
    "NeoSignTx": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "raw_tx": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        },
        "network_magic": {
          "type": "uint32",
          "id": 3,
          "options": {
            "default": 860833102
          }
        }
      }
    },
    "NeoSignedTx": {
      "fields": {
        "public_key": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        },
        "signature": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        }
      }
    },
    "NervosGetAddress": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "network": {
          "rule": "required",
          "type": "string",
          "id": 2
        },
        "show_display": {
          "type": "bool",
          "id": 3
        }
      }
    },
    "NervosAddress": {
      "fields": {
        "address": {
          "rule": "required",
          "type": "string",
          "id": 1
        }
      }
    },
    "NervosSignTx": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "data_initial_chunk": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        },
        "witness_buffer": {
          "rule": "required",
          "type": "bytes",
          "id": 3
        },
        "network": {
          "rule": "required",
          "type": "string",
          "id": 4
        },
        "data_length": {
          "type": "uint32",
          "id": 5
        }
      }
    },
    "NervosSignedTx": {
      "fields": {
        "signature": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        },
        "address": {
          "rule": "required",
          "type": "string",
          "id": 2
        }
      }
    },
    "NervosTxRequest": {
      "fields": {
        "data_length": {
          "type": "uint32",
          "id": 1
        },
        "public_key": {
          "type": "bytes",
          "id": 2
        },
        "signature": {
          "type": "bytes",
          "id": 3
        }
      }
    },
    "NervosTxAck": {
      "fields": {
        "data_chunk": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        }
      }
    },
    "NexaGetAddress": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "show_display": {
          "type": "bool",
          "id": 2
        },
        "prefix": {
          "type": "string",
          "id": 3,
          "options": {
            "default": "nexa"
          }
        }
      }
    },
    "NexaAddress": {
      "fields": {
        "address": {
          "rule": "required",
          "type": "string",
          "id": 1
        },
        "public_key": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        }
      }
    },
    "NexaSignTx": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "raw_message": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        },
        "prefix": {
          "type": "string",
          "id": 3,
          "options": {
            "default": "nexa"
          }
        },
        "input_count": {
          "type": "uint32",
          "id": 4,
          "options": {
            "default": 1
          }
        }
      }
    },
    "NexaTxInputRequest": {
      "fields": {
        "request_index": {
          "rule": "required",
          "type": "uint32",
          "id": 1
        },
        "signature": {
          "type": "bytes",
          "id": 2
        }
      }
    },
    "NexaTxInputAck": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "raw_message": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        }
      }
    },
    "NexaSignedTx": {
      "fields": {
        "signature": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        }
      }
    },
    "NostrGetPublicKey": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "show_display": {
          "type": "bool",
          "id": 2
        }
      }
    },
    "NostrPublicKey": {
      "fields": {
        "publickey": {
          "type": "string",
          "id": 1
        },
        "npub": {
          "type": "string",
          "id": 2
        }
      }
    },
    "NostrSignEvent": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "event": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        }
      }
    },
    "NostrSignedEvent": {
      "fields": {
        "event": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        }
      }
    },
    "NostrSignSchnorr": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "hash": {
          "rule": "required",
          "type": "string",
          "id": 2
        }
      }
    },
    "NostrSignedSchnorr": {
      "fields": {
        "signature": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        }
      }
    },
    "NostrEncryptMessage": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "pubkey": {
          "rule": "required",
          "type": "string",
          "id": 2
        },
        "msg": {
          "rule": "required",
          "type": "string",
          "id": 3
        },
        "show_display": {
          "type": "bool",
          "id": 4
        }
      }
    },
    "NostrEncryptedMessage": {
      "fields": {
        "msg": {
          "rule": "required",
          "type": "string",
          "id": 1
        }
      }
    },
    "NostrDecryptMessage": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "pubkey": {
          "rule": "required",
          "type": "string",
          "id": 2
        },
        "msg": {
          "rule": "required",
          "type": "string",
          "id": 3
        },
        "show_display": {
          "type": "bool",
          "id": 4
        }
      }
    },
    "NostrDecryptedMessage": {
      "fields": {
        "msg": {
          "rule": "required",
          "type": "string",
          "id": 1
        }
      }
    },
    "PolkadotGetAddress": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "prefix": {
          "rule": "required",
          "type": "uint32",
          "id": 2
        },
        "network": {
          "rule": "required",
          "type": "string",
          "id": 3
        },
        "show_display": {
          "type": "bool",
          "id": 4
        }
      }
    },
    "PolkadotAddress": {
      "fields": {
        "address": {
          "type": "string",
          "id": 1
        },
        "public_key": {
          "type": "string",
          "id": 2
        }
      }
    },
    "PolkadotSignTx": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "raw_tx": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        },
        "network": {
          "rule": "required",
          "type": "string",
          "id": 3
        },
        "prefix": {
          "type": "uint32",
          "id": 4
        }
      }
    },
    "PolkadotSignedTx": {
      "fields": {
        "signature": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        }
      }
    },
    "RippleGetAddress": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "show_display": {
          "type": "bool",
          "id": 2
        }
      }
    },
    "RippleAddress": {
      "fields": {
        "address": {
          "rule": "required",
          "type": "string",
          "id": 1
        }
      }
    },
    "RippleSignTx": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "fee": {
          "type": "uint64",
          "id": 2
        },
        "flags": {
          "type": "uint32",
          "id": 3
        },
        "sequence": {
          "type": "uint32",
          "id": 4
        },
        "last_ledger_sequence": {
          "type": "uint32",
          "id": 5
        },
        "payment": {
          "type": "RipplePayment",
          "id": 6
        }
      },
      "nested": {
        "RipplePayment": {
          "fields": {
            "amount": {
              "rule": "required",
              "type": "uint64",
              "id": 1
            },
            "destination": {
              "rule": "required",
              "type": "string",
              "id": 2
            },
            "destination_tag": {
              "type": "uint32",
              "id": 3
            }
          }
        }
      }
    },
    "RippleSignedTx": {
      "fields": {
        "signature": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        },
        "serialized_tx": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        }
      }
    },
    "ScdoGetAddress": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "show_display": {
          "type": "bool",
          "id": 2
        }
      }
    },
    "ScdoAddress": {
      "fields": {
        "address": {
          "rule": "required",
          "type": "string",
          "id": 1
        }
      }
    },
    "ScdoSignTx": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "nonce": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        },
        "gas_price": {
          "rule": "required",
          "type": "bytes",
          "id": 3
        },
        "gas_limit": {
          "rule": "required",
          "type": "bytes",
          "id": 4
        },
        "to": {
          "rule": "required",
          "type": "string",
          "id": 5
        },
        "value": {
          "rule": "required",
          "type": "bytes",
          "id": 6
        },
        "timestamp": {
          "type": "bytes",
          "id": 7
        },
        "data_initial_chunk": {
          "type": "bytes",
          "id": 8,
          "options": {
            "default": ""
          }
        },
        "data_length": {
          "type": "uint32",
          "id": 9,
          "options": {
            "default": 0
          }
        },
        "tx_type": {
          "type": "uint32",
          "id": 10,
          "options": {
            "default": 0
          }
        }
      }
    },
    "ScdoSignedTx": {
      "fields": {
        "data_length": {
          "type": "uint32",
          "id": 1
        },
        "signature": {
          "type": "bytes",
          "id": 2
        }
      }
    },
    "ScdoTxAck": {
      "fields": {
        "data_chunk": {
          "type": "bytes",
          "id": 1
        }
      }
    },
    "ScdoSignMessage": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "message": {
          "type": "bytes",
          "id": 2
        }
      }
    },
    "ScdoSignedMessage": {
      "fields": {
        "signature": {
          "type": "bytes",
          "id": 1
        },
        "address": {
          "type": "string",
          "id": 2
        }
      }
    },
    "SolanaGetAddress": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "show_display": {
          "type": "bool",
          "id": 2
        }
      }
    },
    "SolanaAddress": {
      "fields": {
        "address": {
          "type": "string",
          "id": 1
        }
      }
    },
    "SolanaTxATADetails": {
      "fields": {
        "owner_address": {
          "rule": "required",
          "type": "string",
          "id": 1
        },
        "program_id": {
          "rule": "required",
          "type": "string",
          "id": 2
        },
        "mint_address": {
          "rule": "required",
          "type": "string",
          "id": 3
        },
        "associated_token_address": {
          "rule": "required",
          "type": "string",
          "id": 4
        }
      }
    },
    "SolanaTxExtraInfo": {
      "fields": {
        "ata_details": {
          "rule": "repeated",
          "type": "SolanaTxATADetails",
          "id": 1
        }
      }
    },
    "SolanaSignTx": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "raw_tx": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        },
        "extra_info": {
          "type": "SolanaTxExtraInfo",
          "id": 3
        }
      }
    },
    "SolanaSignedTx": {
      "fields": {
        "signature": {
          "type": "bytes",
          "id": 1
        }
      }
    },
    "SolanaOffChainMessageVersion": {
      "values": {
        "MESSAGE_VERSION_0": 0,
        "MESSAGE_VERSION_1": 1
      }
    },
    "SolanaOffChainMessageFormat": {
      "values": {
        "V0_RESTRICTED_ASCII": 0,
        "V0_LIMITED_UTF8": 1
      }
    },
    "SolanaSignOffChainMessage": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "message": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        },
        "message_version": {
          "type": "SolanaOffChainMessageVersion",
          "id": 3,
          "options": {
            "default": "MESSAGE_VERSION_0"
          }
        },
        "message_format": {
          "type": "SolanaOffChainMessageFormat",
          "id": 4
        },
        "application_domain": {
          "type": "bytes",
          "id": 5
        },
        "required_signers": {
          "rule": "repeated",
          "type": "bytes",
          "id": 7
        }
      }
    },
    "SolanaSignUnsafeMessage": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "message": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        }
      }
    },
    "SolanaMessageSignature": {
      "fields": {
        "signature": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        },
        "public_key": {
          "type": "bytes",
          "id": 2
        }
      }
    },
    "StarcoinGetAddress": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "show_display": {
          "type": "bool",
          "id": 2
        }
      }
    },
    "StarcoinAddress": {
      "fields": {
        "address": {
          "type": "string",
          "id": 1
        }
      }
    },
    "StarcoinGetPublicKey": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "show_display": {
          "type": "bool",
          "id": 2
        }
      }
    },
    "StarcoinPublicKey": {
      "fields": {
        "public_key": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        }
      }
    },
    "StarcoinSignTx": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "raw_tx": {
          "type": "bytes",
          "id": 2
        }
      }
    },
    "StarcoinSignedTx": {
      "fields": {
        "public_key": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        },
        "signature": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        }
      }
    },
    "StarcoinSignMessage": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "message": {
          "type": "bytes",
          "id": 2
        }
      }
    },
    "StarcoinMessageSignature": {
      "fields": {
        "public_key": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        },
        "signature": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        }
      }
    },
    "StarcoinVerifyMessage": {
      "fields": {
        "public_key": {
          "type": "bytes",
          "id": 1
        },
        "signature": {
          "type": "bytes",
          "id": 2
        },
        "message": {
          "type": "bytes",
          "id": 3
        }
      }
    },
    "StellarAssetType": {
      "values": {
        "NATIVE": 0,
        "ALPHANUM4": 1,
        "ALPHANUM12": 2
      }
    },
    "StellarAsset": {
      "fields": {
        "type": {
          "rule": "required",
          "type": "StellarAssetType",
          "id": 1
        },
        "code": {
          "type": "string",
          "id": 2
        },
        "issuer": {
          "type": "string",
          "id": 3
        }
      }
    },
    "StellarGetAddress": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "show_display": {
          "type": "bool",
          "id": 2
        }
      }
    },
    "StellarAddress": {
      "fields": {
        "address": {
          "rule": "required",
          "type": "string",
          "id": 1
        }
      }
    },
    "StellarSignTx": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 2,
          "options": {
            "packed": false
          }
        },
        "network_passphrase": {
          "rule": "required",
          "type": "string",
          "id": 3
        },
        "source_account": {
          "rule": "required",
          "type": "string",
          "id": 4
        },
        "fee": {
          "rule": "required",
          "type": "uint32",
          "id": 5
        },
        "sequence_number": {
          "rule": "required",
          "type": "uint64",
          "id": 6
        },
        "timebounds_start": {
          "rule": "required",
          "type": "uint32",
          "id": 8
        },
        "timebounds_end": {
          "rule": "required",
          "type": "uint32",
          "id": 9
        },
        "memo_type": {
          "rule": "required",
          "type": "StellarMemoType",
          "id": 10
        },
        "memo_text": {
          "type": "string",
          "id": 11
        },
        "memo_id": {
          "type": "uint64",
          "id": 12
        },
        "memo_hash": {
          "type": "bytes",
          "id": 13
        },
        "num_operations": {
          "rule": "required",
          "type": "uint32",
          "id": 14
        },
        "soroban_data_size": {
          "type": "uint32",
          "id": 60,
          "options": {
            "default": 0
          }
        }
      },
      "nested": {
        "StellarMemoType": {
          "values": {
            "NONE": 0,
            "TEXT": 1,
            "ID": 2,
            "HASH": 3,
            "RETURN": 4
          }
        }
      }
    },
    "StellarTxOpRequest": {
      "fields": {}
    },
    "StellarPaymentOp": {
      "fields": {
        "source_account": {
          "type": "string",
          "id": 1
        },
        "destination_account": {
          "rule": "required",
          "type": "string",
          "id": 2
        },
        "asset": {
          "rule": "required",
          "type": "StellarAsset",
          "id": 3
        },
        "amount": {
          "rule": "required",
          "type": "sint64",
          "id": 4
        }
      }
    },
    "StellarCreateAccountOp": {
      "fields": {
        "source_account": {
          "type": "string",
          "id": 1
        },
        "new_account": {
          "rule": "required",
          "type": "string",
          "id": 2
        },
        "starting_balance": {
          "rule": "required",
          "type": "sint64",
          "id": 3
        }
      }
    },
    "StellarPathPaymentStrictReceiveOp": {
      "fields": {
        "source_account": {
          "type": "string",
          "id": 1
        },
        "send_asset": {
          "rule": "required",
          "type": "StellarAsset",
          "id": 2
        },
        "send_max": {
          "rule": "required",
          "type": "sint64",
          "id": 3
        },
        "destination_account": {
          "rule": "required",
          "type": "string",
          "id": 4
        },
        "destination_asset": {
          "rule": "required",
          "type": "StellarAsset",
          "id": 5
        },
        "destination_amount": {
          "rule": "required",
          "type": "sint64",
          "id": 6
        },
        "paths": {
          "rule": "repeated",
          "type": "StellarAsset",
          "id": 7
        }
      }
    },
    "StellarPathPaymentStrictSendOp": {
      "fields": {
        "source_account": {
          "type": "string",
          "id": 1
        },
        "send_asset": {
          "rule": "required",
          "type": "StellarAsset",
          "id": 2
        },
        "send_amount": {
          "rule": "required",
          "type": "sint64",
          "id": 3
        },
        "destination_account": {
          "rule": "required",
          "type": "string",
          "id": 4
        },
        "destination_asset": {
          "rule": "required",
          "type": "StellarAsset",
          "id": 5
        },
        "destination_min": {
          "rule": "required",
          "type": "sint64",
          "id": 6
        },
        "paths": {
          "rule": "repeated",
          "type": "StellarAsset",
          "id": 7
        }
      }
    },
    "StellarManageSellOfferOp": {
      "fields": {
        "source_account": {
          "type": "string",
          "id": 1
        },
        "selling_asset": {
          "rule": "required",
          "type": "StellarAsset",
          "id": 2
        },
        "buying_asset": {
          "rule": "required",
          "type": "StellarAsset",
          "id": 3
        },
        "amount": {
          "rule": "required",
          "type": "sint64",
          "id": 4
        },
        "price_n": {
          "rule": "required",
          "type": "uint32",
          "id": 5
        },
        "price_d": {
          "rule": "required",
          "type": "uint32",
          "id": 6
        },
        "offer_id": {
          "rule": "required",
          "type": "uint64",
          "id": 7
        }
      }
    },
    "StellarManageBuyOfferOp": {
      "fields": {
        "source_account": {
          "type": "string",
          "id": 1
        },
        "selling_asset": {
          "rule": "required",
          "type": "StellarAsset",
          "id": 2
        },
        "buying_asset": {
          "rule": "required",
          "type": "StellarAsset",
          "id": 3
        },
        "amount": {
          "rule": "required",
          "type": "sint64",
          "id": 4
        },
        "price_n": {
          "rule": "required",
          "type": "uint32",
          "id": 5
        },
        "price_d": {
          "rule": "required",
          "type": "uint32",
          "id": 6
        },
        "offer_id": {
          "rule": "required",
          "type": "uint64",
          "id": 7
        }
      }
    },
    "StellarCreatePassiveSellOfferOp": {
      "fields": {
        "source_account": {
          "type": "string",
          "id": 1
        },
        "selling_asset": {
          "rule": "required",
          "type": "StellarAsset",
          "id": 2
        },
        "buying_asset": {
          "rule": "required",
          "type": "StellarAsset",
          "id": 3
        },
        "amount": {
          "rule": "required",
          "type": "sint64",
          "id": 4
        },
        "price_n": {
          "rule": "required",
          "type": "uint32",
          "id": 5
        },
        "price_d": {
          "rule": "required",
          "type": "uint32",
          "id": 6
        }
      }
    },
    "StellarSetOptionsOp": {
      "fields": {
        "source_account": {
          "type": "string",
          "id": 1
        },
        "inflation_destination_account": {
          "type": "string",
          "id": 2
        },
        "clear_flags": {
          "type": "uint32",
          "id": 3
        },
        "set_flags": {
          "type": "uint32",
          "id": 4
        },
        "master_weight": {
          "type": "uint32",
          "id": 5
        },
        "low_threshold": {
          "type": "uint32",
          "id": 6
        },
        "medium_threshold": {
          "type": "uint32",
          "id": 7
        },
        "high_threshold": {
          "type": "uint32",
          "id": 8
        },
        "home_domain": {
          "type": "string",
          "id": 9
        },
        "signer_type": {
          "type": "StellarSignerType",
          "id": 10
        },
        "signer_key": {
          "type": "bytes",
          "id": 11
        },
        "signer_weight": {
          "type": "uint32",
          "id": 12
        }
      },
      "nested": {
        "StellarSignerType": {
          "values": {
            "ACCOUNT": 0,
            "PRE_AUTH": 1,
            "HASH": 2
          }
        }
      }
    },
    "StellarChangeTrustOp": {
      "fields": {
        "source_account": {
          "type": "string",
          "id": 1
        },
        "asset": {
          "rule": "required",
          "type": "StellarAsset",
          "id": 2
        },
        "limit": {
          "rule": "required",
          "type": "uint64",
          "id": 3
        }
      }
    },
    "StellarAllowTrustOp": {
      "fields": {
        "source_account": {
          "type": "string",
          "id": 1
        },
        "trusted_account": {
          "rule": "required",
          "type": "string",
          "id": 2
        },
        "asset_type": {
          "rule": "required",
          "type": "StellarAssetType",
          "id": 3
        },
        "asset_code": {
          "type": "string",
          "id": 4
        },
        "is_authorized": {
          "rule": "required",
          "type": "bool",
          "id": 5
        }
      }
    },
    "StellarAccountMergeOp": {
      "fields": {
        "source_account": {
          "type": "string",
          "id": 1
        },
        "destination_account": {
          "rule": "required",
          "type": "string",
          "id": 2
        }
      }
    },
    "StellarManageDataOp": {
      "fields": {
        "source_account": {
          "type": "string",
          "id": 1
        },
        "key": {
          "rule": "required",
          "type": "string",
          "id": 2
        },
        "value": {
          "type": "bytes",
          "id": 3
        }
      }
    },
    "StellarBumpSequenceOp": {
      "fields": {
        "source_account": {
          "type": "string",
          "id": 1
        },
        "bump_to": {
          "rule": "required",
          "type": "uint64",
          "id": 2
        }
      }
    },
    "StellarInvokeHostFunctionOp": {
      "fields": {
        "source_account": {
          "type": "string",
          "id": 1
        },
        "contract_address": {
          "rule": "required",
          "type": "string",
          "id": 2
        },
        "function_name": {
          "rule": "required",
          "type": "string",
          "id": 3
        },
        "call_args_xdr_size": {
          "rule": "required",
          "type": "uint32",
          "id": 4
        },
        "call_args_xdr_initial_chunk": {
          "rule": "required",
          "type": "bytes",
          "id": 5
        },
        "soroban_auth_xdr_size": {
          "rule": "required",
          "type": "uint32",
          "id": 6
        },
        "soroban_auth_xdr_initial_chunk": {
          "rule": "required",
          "type": "bytes",
          "id": 7
        }
      }
    },
    "StellarSorobanDataRequest": {
      "fields": {
        "type": {
          "rule": "required",
          "type": "StellarRequestType",
          "id": 1
        },
        "data_length": {
          "rule": "required",
          "type": "uint32",
          "id": 2
        }
      },
      "nested": {
        "StellarRequestType": {
          "values": {
            "CALL": 0,
            "AUTH": 1,
            "EXT": 2
          }
        }
      }
    },
    "StellarSorobanDataAck": {
      "fields": {
        "data_xdr": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        }
      }
    },
    "StellarSignedTx": {
      "fields": {
        "public_key": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        },
        "signature": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        }
      }
    },
    "SuiGetAddress": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "show_display": {
          "type": "bool",
          "id": 2
        }
      }
    },
    "SuiAddress": {
      "fields": {
        "address": {
          "type": "string",
          "id": 1
        }
      }
    },
    "SuiSignTx": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "raw_tx": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        },
        "data_initial_chunk": {
          "type": "bytes",
          "id": 3,
          "options": {
            "default": ""
          }
        },
        "data_length": {
          "type": "uint32",
          "id": 4
        }
      }
    },
    "SuiSignedTx": {
      "fields": {
        "public_key": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        },
        "signature": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        }
      }
    },
    "SuiTxRequest": {
      "fields": {
        "data_length": {
          "type": "uint32",
          "id": 1
        },
        "public_key": {
          "type": "bytes",
          "id": 2
        },
        "signature": {
          "type": "bytes",
          "id": 3
        }
      }
    },
    "SuiTxAck": {
      "fields": {
        "data_chunk": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        }
      }
    },
    "SuiSignMessage": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "message": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        }
      }
    },
    "SuiMessageSignature": {
      "fields": {
        "signature": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        },
        "address": {
          "rule": "required",
          "type": "string",
          "id": 2
        }
      }
    },
    "TezosGetAddress": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "show_display": {
          "type": "bool",
          "id": 2
        }
      }
    },
    "TezosAddress": {
      "fields": {
        "address": {
          "rule": "required",
          "type": "string",
          "id": 1
        }
      }
    },
    "TezosGetPublicKey": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "show_display": {
          "type": "bool",
          "id": 2
        }
      }
    },
    "TezosPublicKey": {
      "fields": {
        "public_key": {
          "rule": "required",
          "type": "string",
          "id": 1
        }
      }
    },
    "TezosSignTx": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "branch": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        },
        "reveal": {
          "type": "TezosRevealOp",
          "id": 3
        },
        "transaction": {
          "type": "TezosTransactionOp",
          "id": 4
        },
        "origination": {
          "type": "TezosOriginationOp",
          "id": 5
        },
        "delegation": {
          "type": "TezosDelegationOp",
          "id": 6
        },
        "proposal": {
          "type": "TezosProposalOp",
          "id": 7
        },
        "ballot": {
          "type": "TezosBallotOp",
          "id": 8
        }
      },
      "nested": {
        "TezosContractID": {
          "fields": {
            "tag": {
              "rule": "required",
              "type": "TezosContractType",
              "id": 1
            },
            "hash": {
              "rule": "required",
              "type": "bytes",
              "id": 2
            }
          },
          "nested": {
            "TezosContractType": {
              "values": {
                "Implicit": 0,
                "Originated": 1
              }
            }
          }
        },
        "TezosRevealOp": {
          "fields": {
            "source": {
              "rule": "required",
              "type": "bytes",
              "id": 7
            },
            "fee": {
              "rule": "required",
              "type": "uint64",
              "id": 2
            },
            "counter": {
              "rule": "required",
              "type": "uint64",
              "id": 3
            },
            "gas_limit": {
              "rule": "required",
              "type": "uint64",
              "id": 4
            },
            "storage_limit": {
              "rule": "required",
              "type": "uint64",
              "id": 5
            },
            "public_key": {
              "rule": "required",
              "type": "bytes",
              "id": 6
            }
          }
        },
        "TezosTransactionOp": {
          "fields": {
            "source": {
              "rule": "required",
              "type": "bytes",
              "id": 9
            },
            "fee": {
              "rule": "required",
              "type": "uint64",
              "id": 2
            },
            "counter": {
              "rule": "required",
              "type": "uint64",
              "id": 3
            },
            "gas_limit": {
              "rule": "required",
              "type": "uint64",
              "id": 4
            },
            "storage_limit": {
              "rule": "required",
              "type": "uint64",
              "id": 5
            },
            "amount": {
              "rule": "required",
              "type": "uint64",
              "id": 6
            },
            "destination": {
              "rule": "required",
              "type": "TezosContractID",
              "id": 7
            },
            "parameters": {
              "type": "bytes",
              "id": 8
            },
            "parameters_manager": {
              "type": "TezosParametersManager",
              "id": 10
            }
          },
          "nested": {
            "TezosParametersManager": {
              "fields": {
                "set_delegate": {
                  "type": "bytes",
                  "id": 1
                },
                "cancel_delegate": {
                  "type": "bool",
                  "id": 2
                },
                "transfer": {
                  "type": "TezosManagerTransfer",
                  "id": 3
                }
              },
              "nested": {
                "TezosManagerTransfer": {
                  "fields": {
                    "destination": {
                      "type": "TezosContractID",
                      "id": 1
                    },
                    "amount": {
                      "type": "uint64",
                      "id": 2
                    }
                  }
                }
              }
            }
          }
        },
        "TezosOriginationOp": {
          "fields": {
            "source": {
              "rule": "required",
              "type": "bytes",
              "id": 12
            },
            "fee": {
              "rule": "required",
              "type": "uint64",
              "id": 2
            },
            "counter": {
              "rule": "required",
              "type": "uint64",
              "id": 3
            },
            "gas_limit": {
              "rule": "required",
              "type": "uint64",
              "id": 4
            },
            "storage_limit": {
              "rule": "required",
              "type": "uint64",
              "id": 5
            },
            "manager_pubkey": {
              "type": "bytes",
              "id": 6
            },
            "balance": {
              "rule": "required",
              "type": "uint64",
              "id": 7
            },
            "spendable": {
              "type": "bool",
              "id": 8
            },
            "delegatable": {
              "type": "bool",
              "id": 9
            },
            "delegate": {
              "type": "bytes",
              "id": 10
            },
            "script": {
              "rule": "required",
              "type": "bytes",
              "id": 11
            }
          }
        },
        "TezosDelegationOp": {
          "fields": {
            "source": {
              "rule": "required",
              "type": "bytes",
              "id": 7
            },
            "fee": {
              "rule": "required",
              "type": "uint64",
              "id": 2
            },
            "counter": {
              "rule": "required",
              "type": "uint64",
              "id": 3
            },
            "gas_limit": {
              "rule": "required",
              "type": "uint64",
              "id": 4
            },
            "storage_limit": {
              "rule": "required",
              "type": "uint64",
              "id": 5
            },
            "delegate": {
              "rule": "required",
              "type": "bytes",
              "id": 6
            }
          }
        },
        "TezosProposalOp": {
          "fields": {
            "source": {
              "type": "bytes",
              "id": 1
            },
            "period": {
              "type": "uint64",
              "id": 2
            },
            "proposals": {
              "rule": "repeated",
              "type": "bytes",
              "id": 4
            }
          }
        },
        "TezosBallotOp": {
          "fields": {
            "source": {
              "type": "bytes",
              "id": 1
            },
            "period": {
              "type": "uint64",
              "id": 2
            },
            "proposal": {
              "type": "bytes",
              "id": 3
            },
            "ballot": {
              "type": "TezosBallotType",
              "id": 4
            }
          },
          "nested": {
            "TezosBallotType": {
              "values": {
                "Yay": 0,
                "Nay": 1,
                "Pass": 2
              }
            }
          }
        }
      }
    },
    "TezosSignedTx": {
      "fields": {
        "signature": {
          "rule": "required",
          "type": "string",
          "id": 1
        },
        "sig_op_contents": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        },
        "operation_hash": {
          "rule": "required",
          "type": "string",
          "id": 3
        }
      }
    },
    "TonWalletVersion": {
      "values": {
        "V4R2": 3
      }
    },
    "TonWorkChain": {
      "values": {
        "BASECHAIN": 0,
        "MASTERCHAIN": 1
      }
    },
    "TonGetAddress": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "show_display": {
          "type": "bool",
          "id": 2
        },
        "wallet_version": {
          "type": "TonWalletVersion",
          "id": 3,
          "options": {
            "default": "V4R2"
          }
        },
        "is_bounceable": {
          "type": "bool",
          "id": 4,
          "options": {
            "default": false
          }
        },
        "is_testnet_only": {
          "type": "bool",
          "id": 5,
          "options": {
            "default": false
          }
        },
        "workchain": {
          "type": "TonWorkChain",
          "id": 6,
          "options": {
            "default": "BASECHAIN"
          }
        },
        "wallet_id": {
          "type": "uint32",
          "id": 7,
          "options": {
            "default": 698983191
          }
        }
      }
    },
    "TonAddress": {
      "fields": {
        "public_key": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        },
        "address": {
          "rule": "required",
          "type": "string",
          "id": 2
        }
      }
    },
    "TonSignMessage": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "destination": {
          "rule": "required",
          "type": "string",
          "id": 2
        },
        "jetton_master_address": {
          "type": "string",
          "id": 3
        },
        "jetton_wallet_address": {
          "type": "string",
          "id": 4
        },
        "ton_amount": {
          "rule": "required",
          "type": "uint64",
          "id": 5
        },
        "jetton_amount": {
          "type": "uint64",
          "id": 6
        },
        "fwd_fee": {
          "type": "uint64",
          "id": 7,
          "options": {
            "default": 0
          }
        },
        "comment": {
          "type": "string",
          "id": 8
        },
        "is_raw_data": {
          "type": "bool",
          "id": 9,
          "options": {
            "default": false
          }
        },
        "mode": {
          "type": "uint32",
          "id": 10,
          "options": {
            "default": 3
          }
        },
        "seqno": {
          "rule": "required",
          "type": "uint32",
          "id": 11
        },
        "expire_at": {
          "rule": "required",
          "type": "uint64",
          "id": 12
        },
        "wallet_version": {
          "type": "TonWalletVersion",
          "id": 13,
          "options": {
            "default": "V4R2"
          }
        },
        "wallet_id": {
          "type": "uint32",
          "id": 14,
          "options": {
            "default": 698983191
          }
        },
        "workchain": {
          "type": "TonWorkChain",
          "id": 15,
          "options": {
            "default": "BASECHAIN"
          }
        },
        "is_bounceable": {
          "type": "bool",
          "id": 16,
          "options": {
            "default": false
          }
        },
        "is_testnet_only": {
          "type": "bool",
          "id": 17,
          "options": {
            "default": false
          }
        },
        "ext_destination": {
          "rule": "repeated",
          "type": "string",
          "id": 18
        },
        "ext_ton_amount": {
          "rule": "repeated",
          "type": "uint64",
          "id": 19,
          "options": {
            "packed": false
          }
        },
        "ext_payload": {
          "rule": "repeated",
          "type": "string",
          "id": 20
        },
        "jetton_amount_bytes": {
          "type": "bytes",
          "id": 21
        },
        "init_data_initial_chunk": {
          "type": "bytes",
          "id": 22
        },
        "init_data_length": {
          "type": "uint32",
          "id": 23
        },
        "signing_message_repr": {
          "type": "bytes",
          "id": 24
        }
      }
    },
    "TonTxAck": {
      "fields": {
        "init_data_chunk": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        }
      }
    },
    "TonSignedMessage": {
      "fields": {
        "signature": {
          "type": "bytes",
          "id": 1
        },
        "signning_message": {
          "type": "bytes",
          "id": 2
        },
        "init_data_length": {
          "type": "uint32",
          "id": 3
        }
      }
    },
    "TonSignProof": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "appdomain": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        },
        "comment": {
          "type": "bytes",
          "id": 3
        },
        "expire_at": {
          "rule": "required",
          "type": "uint64",
          "id": 4
        },
        "wallet_version": {
          "type": "TonWalletVersion",
          "id": 5,
          "options": {
            "default": "V4R2"
          }
        },
        "wallet_id": {
          "type": "uint32",
          "id": 6,
          "options": {
            "default": 698983191
          }
        },
        "workchain": {
          "type": "TonWorkChain",
          "id": 7,
          "options": {
            "default": "BASECHAIN"
          }
        },
        "is_bounceable": {
          "type": "bool",
          "id": 8,
          "options": {
            "default": false
          }
        },
        "is_testnet_only": {
          "type": "bool",
          "id": 9,
          "options": {
            "default": false
          }
        }
      }
    },
    "TonSignedProof": {
      "fields": {
        "signature": {
          "type": "bytes",
          "id": 1
        }
      }
    },
    "TonSignData": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "type": {
          "rule": "required",
          "type": "TonSignDataType",
          "id": 2
        },
        "payload": {
          "rule": "required",
          "type": "bytes",
          "id": 3
        },
        "schema": {
          "type": "string",
          "id": 4
        },
        "appdomain": {
          "rule": "required",
          "type": "string",
          "id": 5
        },
        "timestamp": {
          "rule": "required",
          "type": "uint64",
          "id": 6
        },
        "from_address": {
          "type": "string",
          "id": 7
        },
        "wallet_version": {
          "type": "TonWalletVersion",
          "id": 8,
          "options": {
            "default": "V4R2"
          }
        },
        "wallet_id": {
          "type": "uint32",
          "id": 9,
          "options": {
            "default": 698983191
          }
        },
        "workchain": {
          "type": "TonWorkChain",
          "id": 10,
          "options": {
            "default": "BASECHAIN"
          }
        },
        "is_bounceable": {
          "type": "bool",
          "id": 11,
          "options": {
            "default": false
          }
        },
        "is_testnet_only": {
          "type": "bool",
          "id": 12,
          "options": {
            "default": false
          }
        }
      },
      "nested": {
        "TonSignDataType": {
          "values": {
            "TEXT": 0,
            "BINARY": 1,
            "CELL": 2
          }
        }
      }
    },
    "TonSignedData": {
      "fields": {
        "signature": {
          "type": "bytes",
          "id": 1
        },
        "digest": {
          "type": "bytes",
          "id": 2
        }
      }
    },
    "TronGetAddress": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "show_display": {
          "type": "bool",
          "id": 2
        }
      }
    },
    "TronAddress": {
      "fields": {
        "address": {
          "type": "string",
          "id": 1
        }
      }
    },
    "TronSignTx": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "ref_block_bytes": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        },
        "ref_block_hash": {
          "rule": "required",
          "type": "bytes",
          "id": 3
        },
        "expiration": {
          "rule": "required",
          "type": "uint64",
          "id": 4
        },
        "data": {
          "type": "bytes",
          "id": 5
        },
        "contract": {
          "rule": "required",
          "type": "TronContract",
          "id": 6
        },
        "timestamp": {
          "rule": "required",
          "type": "uint64",
          "id": 7
        },
        "fee_limit": {
          "type": "uint64",
          "id": 8
        }
      },
      "nested": {
        "TronContract": {
          "fields": {
            "transfer_contract": {
              "type": "TronTransferContract",
              "id": 2
            },
            "provider": {
              "type": "bytes",
              "id": 3
            },
            "vote_witness_contract": {
              "type": "TronVoteWitnessContract",
              "id": 4
            },
            "contract_name": {
              "type": "bytes",
              "id": 5
            },
            "permission_id": {
              "type": "uint32",
              "id": 6
            },
            "freeze_balance_contract": {
              "type": "TronFreezeBalanceContract",
              "id": 11
            },
            "unfreeze_balance_contract": {
              "type": "TronUnfreezeBalanceContract",
              "id": 12
            },
            "withdraw_balance_contract": {
              "type": "TronWithdrawBalanceContract",
              "id": 13
            },
            "trigger_smart_contract": {
              "type": "TronTriggerSmartContract",
              "id": 31
            },
            "freeze_balance_v2_contract": {
              "type": "TronFreezeBalanceV2Contract",
              "id": 54
            },
            "unfreeze_balance_v2_contract": {
              "type": "TronUnfreezeBalanceV2Contract",
              "id": 55
            },
            "withdraw_expire_unfreeze_contract": {
              "type": "TronWithdrawExpireUnfreezeContract",
              "id": 56
            },
            "delegate_resource_contract": {
              "type": "TronDelegateResourceContract",
              "id": 57
            },
            "undelegate_resource_contract": {
              "type": "TronUnDelegateResourceContract",
              "id": 58
            },
            "cancel_all_unfreeze_v2_contract": {
              "type": "TronCancelAllUnfreezeV2Contract",
              "id": 59
            }
          },
          "nested": {
            "TronTransferContract": {
              "fields": {
                "to_address": {
                  "type": "string",
                  "id": 2
                },
                "amount": {
                  "type": "uint64",
                  "id": 3
                }
              }
            },
            "TronTriggerSmartContract": {
              "fields": {
                "contract_address": {
                  "type": "string",
                  "id": 2
                },
                "call_value": {
                  "type": "uint64",
                  "id": 3
                },
                "data": {
                  "type": "bytes",
                  "id": 4
                },
                "call_token_value": {
                  "type": "uint64",
                  "id": 5
                },
                "asset_id": {
                  "type": "uint64",
                  "id": 6
                }
              }
            },
            "TronResourceCode": {
              "values": {
                "BANDWIDTH": 0,
                "ENERGY": 1,
                "TRON_POWER": 2
              }
            },
            "TronFreezeBalanceContract": {
              "fields": {
                "frozen_balance": {
                  "type": "uint64",
                  "id": 1
                },
                "frozen_duration": {
                  "type": "uint64",
                  "id": 2
                },
                "resource": {
                  "type": "TronResourceCode",
                  "id": 3
                },
                "receiver_address": {
                  "type": "string",
                  "id": 4
                }
              }
            },
            "TronUnfreezeBalanceContract": {
              "fields": {
                "resource": {
                  "type": "TronResourceCode",
                  "id": 1
                },
                "receiver_address": {
                  "type": "string",
                  "id": 2
                }
              }
            },
            "TronWithdrawBalanceContract": {
              "fields": {
                "owner_address": {
                  "type": "bytes",
                  "id": 1
                }
              }
            },
            "TronFreezeBalanceV2Contract": {
              "fields": {
                "frozen_balance": {
                  "type": "uint64",
                  "id": 2
                },
                "resource": {
                  "type": "TronResourceCode",
                  "id": 3
                }
              }
            },
            "TronUnfreezeBalanceV2Contract": {
              "fields": {
                "unfreeze_balance": {
                  "type": "uint64",
                  "id": 2
                },
                "resource": {
                  "type": "TronResourceCode",
                  "id": 3
                }
              }
            },
            "TronWithdrawExpireUnfreezeContract": {
              "fields": {}
            },
            "TronDelegateResourceContract": {
              "fields": {
                "resource": {
                  "type": "TronResourceCode",
                  "id": 2
                },
                "balance": {
                  "type": "uint64",
                  "id": 3
                },
                "receiver_address": {
                  "type": "string",
                  "id": 4
                },
                "lock": {
                  "type": "bool",
                  "id": 5
                },
                "lock_period": {
                  "type": "uint64",
                  "id": 6
                }
              }
            },
            "TronUnDelegateResourceContract": {
              "fields": {
                "resource": {
                  "type": "TronResourceCode",
                  "id": 2
                },
                "balance": {
                  "type": "uint64",
                  "id": 3
                },
                "receiver_address": {
                  "type": "string",
                  "id": 4
                }
              }
            },
            "TronVoteWitnessContract": {
              "fields": {
                "votes": {
                  "rule": "repeated",
                  "type": "Vote",
                  "id": 2
                },
                "support": {
                  "type": "bool",
                  "id": 3
                }
              },
              "nested": {
                "Vote": {
                  "fields": {
                    "vote_address": {
                      "rule": "required",
                      "type": "string",
                      "id": 1
                    },
                    "vote_count": {
                      "rule": "required",
                      "type": "uint32",
                      "id": 2
                    }
                  }
                }
              }
            },
            "TronCancelAllUnfreezeV2Contract": {
              "fields": {}
            }
          }
        }
      }
    },
    "TronSignedTx": {
      "fields": {
        "signature": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        },
        "serialized_tx": {
          "type": "bytes",
          "id": 2
        }
      }
    },
    "TronMessageType": {
      "values": {
        "V1": 1,
        "V2": 2
      }
    },
    "TronSignMessage": {
      "fields": {
        "address_n": {
          "rule": "repeated",
          "type": "uint32",
          "id": 1,
          "options": {
            "packed": false
          }
        },
        "message": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        },
        "message_type": {
          "type": "TronMessageType",
          "id": 3,
          "options": {
            "default": "V1"
          }
        }
      }
    },
    "TronMessageSignature": {
      "fields": {
        "address": {
          "rule": "required",
          "type": "bytes",
          "id": 1
        },
        "signature": {
          "rule": "required",
          "type": "bytes",
          "id": 2
        }
      }
    },
    "WebAuthnListResidentCredentials": {
      "fields": {}
    },
    "WebAuthnAddResidentCredential": {
      "fields": {
        "credential_id": {
          "type": "bytes",
          "id": 1
        }
      }
    },
    "WebAuthnRemoveResidentCredential": {
      "fields": {
        "index": {
          "type": "uint32",
          "id": 1
        }
      }
    },
    "WebAuthnCredentials": {
      "fields": {
        "credentials": {
          "rule": "repeated",
          "type": "WebAuthnCredential",
          "id": 1
        }
      },
      "nested": {
        "WebAuthnCredential": {
          "fields": {
            "index": {
              "type": "uint32",
              "id": 1
            },
            "id": {
              "type": "bytes",
              "id": 2
            },
            "rp_id": {
              "type": "string",
              "id": 3
            },
            "rp_name": {
              "type": "string",
              "id": 4
            },
            "user_id": {
              "type": "bytes",
              "id": 5
            },
            "user_name": {
              "type": "string",
              "id": 6
            },
            "user_display_name": {
              "type": "string",
              "id": 7
            },
            "creation_time": {
              "type": "uint32",
              "id": 8
            },
            "hmac_secret": {
              "type": "bool",
              "id": 9
            },
            "use_sign_count": {
              "type": "bool",
              "id": 10
            },
            "algorithm": {
              "type": "sint32",
              "id": 11
            },
            "curve": {
              "type": "sint32",
              "id": 12
            }
          }
        }
      }
    },
    "wire_in": {
      "type": "bool",
      "id": 50002,
      "extend": "google.protobuf.EnumValueOptions"
    },
    "wire_out": {
      "type": "bool",
      "id": 50003,
      "extend": "google.protobuf.EnumValueOptions"
    },
    "wire_debug_in": {
      "type": "bool",
      "id": 50004,
      "extend": "google.protobuf.EnumValueOptions"
    },
    "wire_debug_out": {
      "type": "bool",
      "id": 50005,
      "extend": "google.protobuf.EnumValueOptions"
    },
    "wire_tiny": {
      "type": "bool",
      "id": 50006,
      "extend": "google.protobuf.EnumValueOptions"
    },
    "wire_bootloader": {
      "type": "bool",
      "id": 50007,
      "extend": "google.protobuf.EnumValueOptions"
    },
    "wire_no_fsm": {
      "type": "bool",
      "id": 50008,
      "extend": "google.protobuf.EnumValueOptions"
    },
    "facotry": {
      "type": "bool",
      "id": 50501,
      "extend": "google.protobuf.EnumValueOptions"
    },
    "bitcoin_only": {
      "type": "bool",
      "id": 60000,
      "extend": "google.protobuf.EnumValueOptions"
    },
    "has_bitcoin_only_values": {
      "type": "bool",
      "id": 51001,
      "extend": "google.protobuf.EnumOptions"
    },
    "unstable": {
      "type": "bool",
      "id": 52001,
      "extend": "google.protobuf.MessageOptions"
    },
    "wire_type": {
      "type": "uint32",
      "id": 52002,
      "extend": "google.protobuf.MessageOptions"
    },
    "experimental": {
      "type": "bool",
      "id": 53001,
      "extend": "google.protobuf.FieldOptions"
    },
    "include_in_bitcoin_only": {
      "type": "bool",
      "id": 60000,
      "extend": "google.protobuf.FileOptions"
    },
    "CommandFlags": {
      "values": {
        "Default": 0,
        "Factory_Only": 1
      }
    },
    "MessageType": {
      "options": {
        "(has_bitcoin_only_values)": true
      },
      "values": {
        "MessageType_Initialize": 0,
        "MessageType_Ping": 1,
        "MessageType_Success": 2,
        "MessageType_Failure": 3,
        "MessageType_ChangePin": 4,
        "MessageType_WipeDevice": 5,
        "MessageType_GetEntropy": 9,
        "MessageType_Entropy": 10,
        "MessageType_LoadDevice": 13,
        "MessageType_ResetDevice": 14,
        "MessageType_Features": 17,
        "MessageType_PinMatrixRequest": 18,
        "MessageType_PinMatrixAck": 19,
        "MessageType_Cancel": 20,
        "MessageType_LockDevice": 24,
        "MessageType_ApplySettings": 25,
        "MessageType_ButtonRequest": 26,
        "MessageType_ButtonAck": 27,
        "MessageType_ApplyFlags": 28,
        "MessageType_BackupDevice": 34,
        "MessageType_EntropyRequest": 35,
        "MessageType_EntropyAck": 36,
        "MessageType_PassphraseRequest": 41,
        "MessageType_PassphraseAck": 42,
        "MessageType_RecoveryDevice": 45,
        "MessageType_WordRequest": 46,
        "MessageType_WordAck": 47,
        "MessageType_GetFeatures": 55,
        "MessageType_SdProtect": 79,
        "MessageType_ChangeWipeCode": 82,
        "MessageType_EndSession": 83,
        "MessageType_DoPreauthorized": 84,
        "MessageType_PreauthorizedRequest": 85,
        "MessageType_CancelAuthorization": 86,
        "MessageType_RebootToBootloader": 87,
        "MessageType_SetU2FCounter": 63,
        "MessageType_GetNextU2FCounter": 80,
        "MessageType_NextU2FCounter": 81,
        "MessageType_Deprecated_PassphraseStateRequest": 77,
        "MessageType_Deprecated_PassphraseStateAck": 78,
        "MessageType_FirmwareErase": 6,
        "MessageType_FirmwareErase_ex": 16,
        "MessageType_FirmwareUpload": 7,
        "MessageType_FirmwareRequest": 8,
        "MessageType_SelfTest": 32,
        "MessageType_Reboot": 30000,
        "MessageType_FirmwareUpdateEmmc": 30001,
        "MessageType_GetPublicKey": 11,
        "MessageType_PublicKey": 12,
        "MessageType_SignTx": 15,
        "MessageType_TxRequest": 21,
        "MessageType_TxAck": 22,
        "MessageType_GetAddress": 29,
        "MessageType_Address": 30,
        "MessageType_SignMessage": 38,
        "MessageType_VerifyMessage": 39,
        "MessageType_MessageSignature": 40,
        "MessageType_GetOwnershipId": 43,
        "MessageType_OwnershipId": 44,
        "MessageType_GetOwnershipProof": 49,
        "MessageType_OwnershipProof": 50,
        "MessageType_AuthorizeCoinJoin": 51,
        "MessageType_SignPsbt": 10052,
        "MessageType_SignedPsbt": 10053,
        "MessageType_CipherKeyValue": 23,
        "MessageType_CipheredKeyValue": 48,
        "MessageType_SignIdentity": 53,
        "MessageType_SignedIdentity": 54,
        "MessageType_GetECDHSessionKey": 61,
        "MessageType_ECDHSessionKey": 62,
        "MessageType_CosiCommit": 71,
        "MessageType_CosiCommitment": 72,
        "MessageType_CosiSign": 73,
        "MessageType_CosiSignature": 74,
        "MessageType_BatchGetPublickeys": 10016,
        "MessageType_EcdsaPublicKeys": 10017,
        "MessageType_DebugLinkDecision": 100,
        "MessageType_DebugLinkGetState": 101,
        "MessageType_DebugLinkState": 102,
        "MessageType_DebugLinkStop": 103,
        "MessageType_DebugLinkLog": 104,
        "MessageType_DebugLinkMemoryRead": 110,
        "MessageType_DebugLinkMemory": 111,
        "MessageType_DebugLinkMemoryWrite": 112,
        "MessageType_DebugLinkFlashErase": 113,
        "MessageType_DebugLinkLayout": 9001,
        "MessageType_DebugLinkReseedRandom": 9002,
        "MessageType_DebugLinkRecordScreen": 9003,
        "MessageType_DebugLinkEraseSdCard": 9005,
        "MessageType_DebugLinkWatchLayout": 9006,
        "MessageType_EmmcFixPermission": 30100,
        "MessageType_EmmcPath": 30101,
        "MessageType_EmmcPathInfo": 30102,
        "MessageType_EmmcFile": 30103,
        "MessageType_EmmcFileRead": 30104,
        "MessageType_EmmcFileWrite": 30105,
        "MessageType_EmmcFileDelete": 30106,
        "MessageType_EmmcDir": 30107,
        "MessageType_EmmcDirList": 30108,
        "MessageType_EmmcDirMake": 30109,
        "MessageType_EmmcDirRemove": 30110,
        "MessageType_EthereumGetPublicKey": 450,
        "MessageType_EthereumPublicKey": 451,
        "MessageType_EthereumGetAddress": 56,
        "MessageType_EthereumAddress": 57,
        "MessageType_EthereumSignTx": 58,
        "MessageType_EthereumSignTxEIP1559": 452,
        "MessageType_EthereumTxRequest": 59,
        "MessageType_EthereumTxAck": 60,
        "MessageType_EthereumSignMessage": 64,
        "MessageType_EthereumVerifyMessage": 65,
        "MessageType_EthereumMessageSignature": 66,
        "MessageType_EthereumSignTypedData": 464,
        "MessageType_EthereumTypedDataStructRequest": 465,
        "MessageType_EthereumTypedDataStructAck": 466,
        "MessageType_EthereumTypedDataValueRequest": 467,
        "MessageType_EthereumTypedDataValueAck": 468,
        "MessageType_EthereumTypedDataSignature": 469,
        "MessageType_EthereumSignTypedHash": 470,
        "MessageType_EthereumGetPublicKeyOneKey": 20100,
        "MessageType_EthereumPublicKeyOneKey": 20101,
        "MessageType_EthereumGetAddressOneKey": 20102,
        "MessageType_EthereumAddressOneKey": 20103,
        "MessageType_EthereumSignTxOneKey": 20104,
        "MessageType_EthereumSignTxEIP1559OneKey": 20105,
        "MessageType_EthereumTxRequestOneKey": 20106,
        "MessageType_EthereumTxAckOneKey": 20107,
        "MessageType_EthereumSignMessageOneKey": 20108,
        "MessageType_EthereumVerifyMessageOneKey": 20109,
        "MessageType_EthereumMessageSignatureOneKey": 20110,
        "MessageType_EthereumSignTypedDataOneKey": 20111,
        "MessageType_EthereumTypedDataStructRequestOneKey": 20112,
        "MessageType_EthereumTypedDataStructAckOneKey": 20113,
        "MessageType_EthereumTypedDataValueRequestOneKey": 20114,
        "MessageType_EthereumTypedDataValueAckOneKey": 20115,
        "MessageType_EthereumTypedDataSignatureOneKey": 20116,
        "MessageType_EthereumSignTypedHashOneKey": 20117,
        "MessageType_EthereumGnosisSafeTxAck": 20118,
        "MessageType_EthereumGnosisSafeTxRequest": 20119,
        "MessageType_EthereumSignTxEIP7702OneKey": 20120,
        "MessageType_NEMGetAddress": 67,
        "MessageType_NEMAddress": 68,
        "MessageType_NEMSignTx": 69,
        "MessageType_NEMSignedTx": 70,
        "MessageType_NEMDecryptMessage": 75,
        "MessageType_NEMDecryptedMessage": 76,
        "MessageType_TezosGetAddress": 150,
        "MessageType_TezosAddress": 151,
        "MessageType_TezosSignTx": 152,
        "MessageType_TezosSignedTx": 153,
        "MessageType_TezosGetPublicKey": 154,
        "MessageType_TezosPublicKey": 155,
        "MessageType_StellarSignTx": 202,
        "MessageType_StellarTxOpRequest": 203,
        "MessageType_StellarGetAddress": 207,
        "MessageType_StellarAddress": 208,
        "MessageType_StellarCreateAccountOp": 210,
        "MessageType_StellarPaymentOp": 211,
        "MessageType_StellarPathPaymentStrictReceiveOp": 212,
        "MessageType_StellarManageSellOfferOp": 213,
        "MessageType_StellarCreatePassiveSellOfferOp": 214,
        "MessageType_StellarSetOptionsOp": 215,
        "MessageType_StellarChangeTrustOp": 216,
        "MessageType_StellarAllowTrustOp": 217,
        "MessageType_StellarAccountMergeOp": 218,
        "MessageType_StellarManageDataOp": 220,
        "MessageType_StellarBumpSequenceOp": 221,
        "MessageType_StellarManageBuyOfferOp": 222,
        "MessageType_StellarPathPaymentStrictSendOp": 223,
        "MessageType_StellarSignedTx": 230,
        "MessageType_StellarInvokeHostFunctionOp": 260,
        "MessageType_StellarSorobanDataRequest": 261,
        "MessageType_StellarSorobanDataAck": 262,
        "MessageType_CardanoGetPublicKey": 305,
        "MessageType_CardanoPublicKey": 306,
        "MessageType_CardanoGetAddress": 307,
        "MessageType_CardanoAddress": 308,
        "MessageType_CardanoTxItemAck": 313,
        "MessageType_CardanoTxAuxiliaryDataSupplement": 314,
        "MessageType_CardanoTxWitnessRequest": 315,
        "MessageType_CardanoTxWitnessResponse": 316,
        "MessageType_CardanoTxHostAck": 317,
        "MessageType_CardanoTxBodyHash": 318,
        "MessageType_CardanoSignTxFinished": 319,
        "MessageType_CardanoSignTxInit": 320,
        "MessageType_CardanoTxInput": 321,
        "MessageType_CardanoTxOutput": 322,
        "MessageType_CardanoAssetGroup": 323,
        "MessageType_CardanoToken": 324,
        "MessageType_CardanoTxCertificate": 325,
        "MessageType_CardanoTxWithdrawal": 326,
        "MessageType_CardanoTxAuxiliaryData": 327,
        "MessageType_CardanoPoolOwner": 328,
        "MessageType_CardanoPoolRelayParameters": 329,
        "MessageType_CardanoGetNativeScriptHash": 330,
        "MessageType_CardanoNativeScriptHash": 331,
        "MessageType_CardanoTxMint": 332,
        "MessageType_CardanoTxCollateralInput": 333,
        "MessageType_CardanoTxRequiredSigner": 334,
        "MessageType_CardanoTxInlineDatumChunk": 335,
        "MessageType_CardanoTxReferenceScriptChunk": 336,
        "MessageType_CardanoTxReferenceInput": 337,
        "MessageType_CardanoSignMessage": 350,
        "MessageType_CardanoMessageSignature": 351,
        "MessageType_RippleGetAddress": 400,
        "MessageType_RippleAddress": 401,
        "MessageType_RippleSignTx": 402,
        "MessageType_RippleSignedTx": 403,
        "MessageType_MoneroTransactionInitRequest": 501,
        "MessageType_MoneroTransactionInitAck": 502,
        "MessageType_MoneroTransactionSetInputRequest": 503,
        "MessageType_MoneroTransactionSetInputAck": 504,
        "MessageType_MoneroTransactionInputsPermutationRequest": 505,
        "MessageType_MoneroTransactionInputsPermutationAck": 506,
        "MessageType_MoneroTransactionInputViniRequest": 507,
        "MessageType_MoneroTransactionInputViniAck": 508,
        "MessageType_MoneroTransactionAllInputsSetRequest": 509,
        "MessageType_MoneroTransactionAllInputsSetAck": 510,
        "MessageType_MoneroTransactionSetOutputRequest": 511,
        "MessageType_MoneroTransactionSetOutputAck": 512,
        "MessageType_MoneroTransactionAllOutSetRequest": 513,
        "MessageType_MoneroTransactionAllOutSetAck": 514,
        "MessageType_MoneroTransactionSignInputRequest": 515,
        "MessageType_MoneroTransactionSignInputAck": 516,
        "MessageType_MoneroTransactionFinalRequest": 517,
        "MessageType_MoneroTransactionFinalAck": 518,
        "MessageType_MoneroKeyImageExportInitRequest": 530,
        "MessageType_MoneroKeyImageExportInitAck": 531,
        "MessageType_MoneroKeyImageSyncStepRequest": 532,
        "MessageType_MoneroKeyImageSyncStepAck": 533,
        "MessageType_MoneroKeyImageSyncFinalRequest": 534,
        "MessageType_MoneroKeyImageSyncFinalAck": 535,
        "MessageType_MoneroGetAddress": 540,
        "MessageType_MoneroAddress": 541,
        "MessageType_MoneroGetWatchKey": 542,
        "MessageType_MoneroWatchKey": 543,
        "MessageType_DebugMoneroDiagRequest": 546,
        "MessageType_DebugMoneroDiagAck": 547,
        "MessageType_MoneroGetTxKeyRequest": 550,
        "MessageType_MoneroGetTxKeyAck": 551,
        "MessageType_MoneroLiveRefreshStartRequest": 552,
        "MessageType_MoneroLiveRefreshStartAck": 553,
        "MessageType_MoneroLiveRefreshStepRequest": 554,
        "MessageType_MoneroLiveRefreshStepAck": 555,
        "MessageType_MoneroLiveRefreshFinalRequest": 556,
        "MessageType_MoneroLiveRefreshFinalAck": 557,
        "MessageType_EosGetPublicKey": 600,
        "MessageType_EosPublicKey": 601,
        "MessageType_EosSignTx": 602,
        "MessageType_EosTxActionRequest": 603,
        "MessageType_EosTxActionAck": 604,
        "MessageType_EosSignedTx": 605,
        "MessageType_BinanceGetAddress": 700,
        "MessageType_BinanceAddress": 701,
        "MessageType_BinanceGetPublicKey": 702,
        "MessageType_BinancePublicKey": 703,
        "MessageType_BinanceSignTx": 704,
        "MessageType_BinanceTxRequest": 705,
        "MessageType_BinanceTransferMsg": 706,
        "MessageType_BinanceOrderMsg": 707,
        "MessageType_BinanceCancelMsg": 708,
        "MessageType_BinanceSignedTx": 709,
        "MessageType_SolanaGetAddress": 10100,
        "MessageType_SolanaAddress": 10101,
        "MessageType_SolanaSignTx": 10102,
        "MessageType_SolanaSignedTx": 10103,
        "MessageType_SolanaSignOffChainMessage": 10104,
        "MessageType_SolanaMessageSignature": 10105,
        "MessageType_SolanaSignUnsafeMessage": 10106,
        "MessageType_StarcoinGetAddress": 10300,
        "MessageType_StarcoinAddress": 10301,
        "MessageType_StarcoinGetPublicKey": 10302,
        "MessageType_StarcoinPublicKey": 10303,
        "MessageType_StarcoinSignTx": 10304,
        "MessageType_StarcoinSignedTx": 10305,
        "MessageType_StarcoinSignMessage": 10306,
        "MessageType_StarcoinMessageSignature": 10307,
        "MessageType_StarcoinVerifyMessage": 10308,
        "MessageType_AptosGetAddress": 10600,
        "MessageType_AptosAddress": 10601,
        "MessageType_AptosSignTx": 10602,
        "MessageType_AptosSignedTx": 10603,
        "MessageType_AptosSignMessage": 10604,
        "MessageType_AptosMessageSignature": 10605,
        "MessageType_AptosSignSIWAMessage": 10606,
        "MessageType_WebAuthnListResidentCredentials": 800,
        "MessageType_WebAuthnCredentials": 801,
        "MessageType_WebAuthnAddResidentCredential": 802,
        "MessageType_WebAuthnRemoveResidentCredential": 803,
        "MessageType_BixinSeedOperate": 901,
        "MessageType_BixinMessageSE": 902,
        "MessageType_BixinOutMessageSE": 904,
        "MessageType_BixinBackupRequest": 905,
        "MessageType_BixinBackupAck": 906,
        "MessageType_BixinRestoreRequest": 907,
        "MessageType_BixinRestoreAck": 908,
        "MessageType_BixinVerifyDeviceRequest": 909,
        "MessageType_BixinVerifyDeviceAck": 910,
        "MessageType_BixinWhiteListRequest": 911,
        "MessageType_BixinWhiteListAck": 912,
        "MessageType_BixinLoadDevice": 913,
        "MessageType_BixinBackupDevice": 914,
        "MessageType_BixinBackupDeviceAck": 915,
        "MessageType_BixinPinInputOnDevice": 10000,
        "MessageType_EthereumSignMessageEIP712": 10200,
        "MessageType_GetPublicKeyMultiple": 10210,
        "MessageType_PublicKeyMultiple": 10211,
        "MessageType_ConfluxGetAddress": 10112,
        "MessageType_ConfluxAddress": 10113,
        "MessageType_ConfluxSignTx": 10114,
        "MessageType_ConfluxTxRequest": 10115,
        "MessageType_ConfluxTxAck": 10116,
        "MessageType_ConfluxSignMessage": 10117,
        "MessageType_ConfluxSignMessageCIP23": 10118,
        "MessageType_ConfluxMessageSignature": 10119,
        "MessageType_TronGetAddress": 10501,
        "MessageType_TronAddress": 10502,
        "MessageType_TronSignTx": 10503,
        "MessageType_TronSignedTx": 10504,
        "MessageType_TronSignMessage": 10505,
        "MessageType_TronMessageSignature": 10506,
        "MessageType_NearGetAddress": 10701,
        "MessageType_NearAddress": 10702,
        "MessageType_NearSignTx": 10703,
        "MessageType_NearSignedTx": 10704,
        "MessageType_CosmosGetAddress": 10800,
        "MessageType_CosmosAddress": 10801,
        "MessageType_CosmosSignTx": 10802,
        "MessageType_CosmosSignedTx": 10803,
        "MessageType_AlgorandGetAddress": 10900,
        "MessageType_AlgorandAddress": 10901,
        "MessageType_AlgorandSignTx": 10902,
        "MessageType_AlgorandSignedTx": 10903,
        "MessageType_PolkadotGetAddress": 11000,
        "MessageType_PolkadotAddress": 11001,
        "MessageType_PolkadotSignTx": 11002,
        "MessageType_PolkadotSignedTx": 11003,
        "MessageType_SuiGetAddress": 11100,
        "MessageType_SuiAddress": 11101,
        "MessageType_SuiSignTx": 11102,
        "MessageType_SuiSignedTx": 11103,
        "MessageType_SuiSignMessage": 11104,
        "MessageType_SuiMessageSignature": 11105,
        "MessageType_SuiTxRequest": 11106,
        "MessageType_SuiTxAck": 11107,
        "MessageType_FilecoinGetAddress": 11200,
        "MessageType_FilecoinAddress": 11201,
        "MessageType_FilecoinSignTx": 11202,
        "MessageType_FilecoinSignedTx": 11203,
        "MessageType_KaspaGetAddress": 11300,
        "MessageType_KaspaAddress": 11301,
        "MessageType_KaspaSignTx": 11302,
        "MessageType_KaspaSignedTx": 11303,
        "MessageType_KaspaTxInputRequest": 11304,
        "MessageType_KaspaTxInputAck": 11305,
        "MessageType_KaspaTxRequest": 11306,
        "MessageType_KaspaTxAckInput": 11307,
        "MessageType_KaspaTxAckOutput": 11308,
        "MessageType_KaspaTxAckPayloadChunk": 11309,
        "MessageType_KaspaTxAckPrevMeta": 11310,
        "MessageType_KaspaTxAckPrevInput": 11311,
        "MessageType_KaspaTxAckPrevOutput": 11312,
        "MessageType_NexaGetAddress": 11400,
        "MessageType_NexaAddress": 11401,
        "MessageType_NexaSignTx": 11402,
        "MessageType_NexaSignedTx": 11403,
        "MessageType_NexaTxInputRequest": 11404,
        "MessageType_NexaTxInputAck": 11405,
        "MessageType_NostrGetPublicKey": 11500,
        "MessageType_NostrPublicKey": 11501,
        "MessageType_NostrSignEvent": 11502,
        "MessageType_NostrSignedEvent": 11503,
        "MessageType_NostrEncryptMessage": 11504,
        "MessageType_NostrEncryptedMessage": 11505,
        "MessageType_NostrDecryptMessage": 11506,
        "MessageType_NostrDecryptedMessage": 11507,
        "MessageType_NostrSignSchnorr": 11508,
        "MessageType_NostrSignedSchnorr": 11509,
        "MessageType_LnurlAuth": 11600,
        "MessageType_LnurlAuthResp": 11601,
        "MessageType_NervosGetAddress": 11701,
        "MessageType_NervosAddress": 11702,
        "MessageType_NervosSignTx": 11703,
        "MessageType_NervosSignedTx": 11704,
        "MessageType_NervosTxRequest": 11705,
        "MessageType_NervosTxAck": 11706,
        "MessageType_DnxGetAddress": 11800,
        "MessageType_DnxAddress": 11801,
        "MessageType_DnxSignTx": 11802,
        "MessageType_DnxInputRequest": 11803,
        "MessageType_DnxInputAck": 11804,
        "MessageType_DnxRTSigsRequest": 11805,
        "MessageType_DnxSignedTx": 11806,
        "MessageType_TonGetAddress": 11901,
        "MessageType_TonAddress": 11902,
        "MessageType_TonSignMessage": 11903,
        "MessageType_TonSignedMessage": 11904,
        "MessageType_TonSignProof": 11905,
        "MessageType_TonSignedProof": 11906,
        "MessageType_TonTxAck": 11907,
        "MessageType_TonSignData": 11908,
        "MessageType_TonSignedData": 11909,
        "MessageType_ScdoGetAddress": 12001,
        "MessageType_ScdoAddress": 12002,
        "MessageType_ScdoSignTx": 12003,
        "MessageType_ScdoSignedTx": 12004,
        "MessageType_ScdoTxAck": 12005,
        "MessageType_ScdoSignMessage": 12006,
        "MessageType_ScdoSignedMessage": 12007,
        "MessageType_AlephiumGetAddress": 12101,
        "MessageType_AlephiumAddress": 12102,
        "MessageType_AlephiumSignTx": 12103,
        "MessageType_AlephiumSignedTx": 12104,
        "MessageType_AlephiumTxRequest": 12105,
        "MessageType_AlephiumTxAck": 12106,
        "MessageType_AlephiumBytecodeRequest": 12107,
        "MessageType_AlephiumBytecodeAck": 12108,
        "MessageType_AlephiumSignMessage": 12109,
        "MessageType_AlephiumMessageSignature": 12110,
        "MessageType_BenfenGetAddress": 12201,
        "MessageType_BenfenAddress": 12202,
        "MessageType_BenfenSignTx": 12203,
        "MessageType_BenfenSignedTx": 12204,
        "MessageType_BenfenSignMessage": 12205,
        "MessageType_BenfenMessageSignature": 12206,
        "MessageType_BenfenTxRequest": 12207,
        "MessageType_BenfenTxAck": 12208,
        "MessageType_NeoGetAddress": 12301,
        "MessageType_NeoAddress": 12302,
        "MessageType_NeoSignTx": 12303,
        "MessageType_NeoSignedTx": 12304,
        "MessageType_DeviceBackToBoot": 903,
        "MessageType_DeviceInfoSettings": 10001,
        "MessageType_GetDeviceInfo": 10002,
        "MessageType_DeviceInfo": 10003,
        "MessageType_ReadSEPublicKey": 10004,
        "MessageType_SEPublicKey": 10005,
        "MessageType_WriteSEPublicCert": 10006,
        "MessageType_ReadSEPublicCert": 10007,
        "MessageType_SEPublicCert": 10008,
        "MessageType_SpiFlashWrite": 10009,
        "MessageType_SpiFlashRead": 10010,
        "MessageType_SpiFlashData": 10011,
        "MessageType_SESignMessage": 10012,
        "MessageType_SEMessageSignature": 10013,
        "MessageType_NFTWriteInfo": 10014,
        "MessageType_NFTWriteData": 10015,
        "MessageType_ResourceUpload": 10018,
        "MessageType_ZoomRequest": 10019,
        "MessageType_BlurRequest": 10032,
        "MessageType_ResourceRequest": 10020,
        "MessageType_ResourceAck": 10021,
        "MessageType_ResourceUpdate": 10022,
        "MessageType_ListResDir": 10023,
        "MessageType_FileInfoList": 10024,
        "MessageType_OnekeyGetFeatures": 10025,
        "MessageType_OnekeyFeatures": 10026,
        "MessageType_GetPassphraseState": 10028,
        "MessageType_PassphraseState": 10029,
        "MessageType_UnLockDevice": 10030,
        "MessageType_UnLockDeviceResponse": 10031,
        "MessageType_UpgradeFileHeader": 10050
      }
    },
    "google": {
      "nested": {
        "protobuf": {
          "nested": {
            "FileDescriptorSet": {
              "fields": {
                "file": {
                  "rule": "repeated",
                  "type": "FileDescriptorProto",
                  "id": 1
                }
              }
            },
            "FileDescriptorProto": {
              "fields": {
                "name": {
                  "type": "string",
                  "id": 1
                },
                "package": {
                  "type": "string",
                  "id": 2
                },
                "dependency": {
                  "rule": "repeated",
                  "type": "string",
                  "id": 3
                },
                "public_dependency": {
                  "rule": "repeated",
                  "type": "int32",
                  "id": 10,
                  "options": {
                    "packed": false
                  }
                },
                "weak_dependency": {
                  "rule": "repeated",
                  "type": "int32",
                  "id": 11,
                  "options": {
                    "packed": false
                  }
                },
                "message_type": {
                  "rule": "repeated",
                  "type": "DescriptorProto",
                  "id": 4
                },
                "enum_type": {
                  "rule": "repeated",
                  "type": "EnumDescriptorProto",
                  "id": 5
                },
                "service": {
                  "rule": "repeated",
                  "type": "ServiceDescriptorProto",
                  "id": 6
                },
                "extension": {
                  "rule": "repeated",
                  "type": "FieldDescriptorProto",
                  "id": 7
                },
                "options": {
                  "type": "FileOptions",
                  "id": 8
                },
                "source_code_info": {
                  "type": "SourceCodeInfo",
                  "id": 9
                },
                "syntax": {
                  "type": "string",
                  "id": 12
                }
              }
            },
            "DescriptorProto": {
              "fields": {
                "name": {
                  "type": "string",
                  "id": 1
                },
                "field": {
                  "rule": "repeated",
                  "type": "FieldDescriptorProto",
                  "id": 2
                },
                "extension": {
                  "rule": "repeated",
                  "type": "FieldDescriptorProto",
                  "id": 6
                },
                "nested_type": {
                  "rule": "repeated",
                  "type": "DescriptorProto",
                  "id": 3
                },
                "enum_type": {
                  "rule": "repeated",
                  "type": "EnumDescriptorProto",
                  "id": 4
                },
                "extension_range": {
                  "rule": "repeated",
                  "type": "ExtensionRange",
                  "id": 5
                },
                "oneof_decl": {
                  "rule": "repeated",
                  "type": "OneofDescriptorProto",
                  "id": 8
                },
                "options": {
                  "type": "MessageOptions",
                  "id": 7
                },
                "reserved_range": {
                  "rule": "repeated",
                  "type": "ReservedRange",
                  "id": 9
                },
                "reserved_name": {
                  "rule": "repeated",
                  "type": "string",
                  "id": 10
                }
              },
              "nested": {
                "ExtensionRange": {
                  "fields": {
                    "start": {
                      "type": "int32",
                      "id": 1
                    },
                    "end": {
                      "type": "int32",
                      "id": 2
                    }
                  }
                },
                "ReservedRange": {
                  "fields": {
                    "start": {
                      "type": "int32",
                      "id": 1
                    },
                    "end": {
                      "type": "int32",
                      "id": 2
                    }
                  }
                }
              }
            },
            "FieldDescriptorProto": {
              "fields": {
                "name": {
                  "type": "string",
                  "id": 1
                },
                "number": {
                  "type": "int32",
                  "id": 3
                },
                "label": {
                  "type": "Label",
                  "id": 4
                },
                "type": {
                  "type": "Type",
                  "id": 5
                },
                "type_name": {
                  "type": "string",
                  "id": 6
                },
                "extendee": {
                  "type": "string",
                  "id": 2
                },
                "default_value": {
                  "type": "string",
                  "id": 7
                },
                "oneof_index": {
                  "type": "int32",
                  "id": 9
                },
                "json_name": {
                  "type": "string",
                  "id": 10
                },
                "options": {
                  "type": "FieldOptions",
                  "id": 8
                }
              },
              "nested": {
                "Type": {
                  "values": {
                    "TYPE_DOUBLE": 1,
                    "TYPE_FLOAT": 2,
                    "TYPE_INT64": 3,
                    "TYPE_UINT64": 4,
                    "TYPE_INT32": 5,
                    "TYPE_FIXED64": 6,
                    "TYPE_FIXED32": 7,
                    "TYPE_BOOL": 8,
                    "TYPE_STRING": 9,
                    "TYPE_GROUP": 10,
                    "TYPE_MESSAGE": 11,
                    "TYPE_BYTES": 12,
                    "TYPE_UINT32": 13,
                    "TYPE_ENUM": 14,
                    "TYPE_SFIXED32": 15,
                    "TYPE_SFIXED64": 16,
                    "TYPE_SINT32": 17,
                    "TYPE_SINT64": 18
                  }
                },
                "Label": {
                  "values": {
                    "LABEL_OPTIONAL": 1,
                    "LABEL_REQUIRED": 2,
                    "LABEL_REPEATED": 3
                  }
                }
              }
            },
            "OneofDescriptorProto": {
              "fields": {
                "name": {
                  "type": "string",
                  "id": 1
                },
                "options": {
                  "type": "OneofOptions",
                  "id": 2
                }
              }
            },
            "EnumDescriptorProto": {
              "fields": {
                "name": {
                  "type": "string",
                  "id": 1
                },
                "value": {
                  "rule": "repeated",
                  "type": "EnumValueDescriptorProto",
                  "id": 2
                },
                "options": {
                  "type": "EnumOptions",
                  "id": 3
                }
              }
            },
            "EnumValueDescriptorProto": {
              "fields": {
                "name": {
                  "type": "string",
                  "id": 1
                },
                "number": {
                  "type": "int32",
                  "id": 2
                },
                "options": {
                  "type": "EnumValueOptions",
                  "id": 3
                }
              }
            },
            "ServiceDescriptorProto": {
              "fields": {
                "name": {
                  "type": "string",
                  "id": 1
                },
                "method": {
                  "rule": "repeated",
                  "type": "MethodDescriptorProto",
                  "id": 2
                },
                "options": {
                  "type": "ServiceOptions",
                  "id": 3
                }
              }
            },
            "MethodDescriptorProto": {
              "fields": {
                "name": {
                  "type": "string",
                  "id": 1
                },
                "input_type": {
                  "type": "string",
                  "id": 2
                },
                "output_type": {
                  "type": "string",
                  "id": 3
                },
                "options": {
                  "type": "MethodOptions",
                  "id": 4
                },
                "client_streaming": {
                  "type": "bool",
                  "id": 5
                },
                "server_streaming": {
                  "type": "bool",
                  "id": 6
                }
              }
            },
            "FileOptions": {
              "fields": {
                "java_package": {
                  "type": "string",
                  "id": 1
                },
                "java_outer_classname": {
                  "type": "string",
                  "id": 8
                },
                "java_multiple_files": {
                  "type": "bool",
                  "id": 10
                },
                "java_generate_equals_and_hash": {
                  "type": "bool",
                  "id": 20,
                  "options": {
                    "deprecated": true
                  }
                },
                "java_string_check_utf8": {
                  "type": "bool",
                  "id": 27
                },
                "optimize_for": {
                  "type": "OptimizeMode",
                  "id": 9,
                  "options": {
                    "default": "SPEED"
                  }
                },
                "go_package": {
                  "type": "string",
                  "id": 11
                },
                "cc_generic_services": {
                  "type": "bool",
                  "id": 16
                },
                "java_generic_services": {
                  "type": "bool",
                  "id": 17
                },
                "py_generic_services": {
                  "type": "bool",
                  "id": 18
                },
                "deprecated": {
                  "type": "bool",
                  "id": 23
                },
                "cc_enable_arenas": {
                  "type": "bool",
                  "id": 31
                },
                "objc_class_prefix": {
                  "type": "string",
                  "id": 36
                },
                "csharp_namespace": {
                  "type": "string",
                  "id": 37
                },
                "uninterpreted_option": {
                  "rule": "repeated",
                  "type": "UninterpretedOption",
                  "id": 999
                }
              },
              "extensions": [[1000, 536870911]],
              "reserved": [[38, 38]],
              "nested": {
                "OptimizeMode": {
                  "values": {
                    "SPEED": 1,
                    "CODE_SIZE": 2,
                    "LITE_RUNTIME": 3
                  }
                }
              }
            },
            "MessageOptions": {
              "fields": {
                "message_set_wire_format": {
                  "type": "bool",
                  "id": 1
                },
                "no_standard_descriptor_accessor": {
                  "type": "bool",
                  "id": 2
                },
                "deprecated": {
                  "type": "bool",
                  "id": 3
                },
                "map_entry": {
                  "type": "bool",
                  "id": 7
                },
                "uninterpreted_option": {
                  "rule": "repeated",
                  "type": "UninterpretedOption",
                  "id": 999
                }
              },
              "extensions": [[1000, 536870911]],
              "reserved": [[8, 8]]
            },
            "FieldOptions": {
              "fields": {
                "ctype": {
                  "type": "CType",
                  "id": 1,
                  "options": {
                    "default": "STRING"
                  }
                },
                "packed": {
                  "type": "bool",
                  "id": 2
                },
                "jstype": {
                  "type": "JSType",
                  "id": 6,
                  "options": {
                    "default": "JS_NORMAL"
                  }
                },
                "lazy": {
                  "type": "bool",
                  "id": 5
                },
                "deprecated": {
                  "type": "bool",
                  "id": 3
                },
                "weak": {
                  "type": "bool",
                  "id": 10
                },
                "uninterpreted_option": {
                  "rule": "repeated",
                  "type": "UninterpretedOption",
                  "id": 999
                }
              },
              "extensions": [[1000, 536870911]],
              "reserved": [[4, 4]],
              "nested": {
                "CType": {
                  "values": {
                    "STRING": 0,
                    "CORD": 1,
                    "STRING_PIECE": 2
                  }
                },
                "JSType": {
                  "values": {
                    "JS_NORMAL": 0,
                    "JS_STRING": 1,
                    "JS_NUMBER": 2
                  }
                }
              }
            },
            "OneofOptions": {
              "fields": {
                "uninterpreted_option": {
                  "rule": "repeated",
                  "type": "UninterpretedOption",
                  "id": 999
                }
              },
              "extensions": [[1000, 536870911]]
            },
            "EnumOptions": {
              "fields": {
                "allow_alias": {
                  "type": "bool",
                  "id": 2
                },
                "deprecated": {
                  "type": "bool",
                  "id": 3
                },
                "uninterpreted_option": {
                  "rule": "repeated",
                  "type": "UninterpretedOption",
                  "id": 999
                }
              },
              "extensions": [[1000, 536870911]]
            },
            "EnumValueOptions": {
              "fields": {
                "deprecated": {
                  "type": "bool",
                  "id": 1
                },
                "uninterpreted_option": {
                  "rule": "repeated",
                  "type": "UninterpretedOption",
                  "id": 999
                }
              },
              "extensions": [[1000, 536870911]]
            },
            "ServiceOptions": {
              "fields": {
                "deprecated": {
                  "type": "bool",
                  "id": 33
                },
                "uninterpreted_option": {
                  "rule": "repeated",
                  "type": "UninterpretedOption",
                  "id": 999
                }
              },
              "extensions": [[1000, 536870911]]
            },
            "MethodOptions": {
              "fields": {
                "deprecated": {
                  "type": "bool",
                  "id": 33
                },
                "uninterpreted_option": {
                  "rule": "repeated",
                  "type": "UninterpretedOption",
                  "id": 999
                }
              },
              "extensions": [[1000, 536870911]]
            },
            "UninterpretedOption": {
              "fields": {
                "name": {
                  "rule": "repeated",
                  "type": "NamePart",
                  "id": 2
                },
                "identifier_value": {
                  "type": "string",
                  "id": 3
                },
                "positive_int_value": {
                  "type": "uint64",
                  "id": 4
                },
                "negative_int_value": {
                  "type": "int64",
                  "id": 5
                },
                "double_value": {
                  "type": "double",
                  "id": 6
                },
                "string_value": {
                  "type": "bytes",
                  "id": 7
                },
                "aggregate_value": {
                  "type": "string",
                  "id": 8
                }
              },
              "nested": {
                "NamePart": {
                  "fields": {
                    "name_part": {
                      "rule": "required",
                      "type": "string",
                      "id": 1
                    },
                    "is_extension": {
                      "rule": "required",
                      "type": "bool",
                      "id": 2
                    }
                  }
                }
              }
            },
            "SourceCodeInfo": {
              "fields": {
                "location": {
                  "rule": "repeated",
                  "type": "Location",
                  "id": 1
                }
              },
              "nested": {
                "Location": {
                  "fields": {
                    "path": {
                      "rule": "repeated",
                      "type": "int32",
                      "id": 1
                    },
                    "span": {
                      "rule": "repeated",
                      "type": "int32",
                      "id": 2
                    },
                    "leading_comments": {
                      "type": "string",
                      "id": 3
                    },
                    "trailing_comments": {
                      "type": "string",
                      "id": 4
                    },
                    "leading_detached_comments": {
                      "rule": "repeated",
                      "type": "string",
                      "id": 6
                    }
                  }
                }
              }
            },
            "GeneratedCodeInfo": {
              "fields": {
                "annotation": {
                  "rule": "repeated",
                  "type": "Annotation",
                  "id": 1
                }
              },
              "nested": {
                "Annotation": {
                  "fields": {
                    "path": {
                      "rule": "repeated",
                      "type": "int32",
                      "id": 1
                    },
                    "source_file": {
                      "type": "string",
                      "id": 2
                    },
                    "begin": {
                      "type": "int32",
                      "id": 3
                    },
                    "end": {
                      "type": "int32",
                      "id": 4
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
