erc7730.model.calldata.v1.descriptor module

Data model for Ledger specific calldata descriptor, version 1 (also referred to as “generic parser” descriptor).

pydantic model erc7730.model.calldata.v1.descriptor.CalldataDescriptorV1[source]View on GitHub

Bases: CalldataDescriptorBase

A clear signing descriptor for a smart contract function calldata.

Also referred to as a “generic parser descriptor”.

Fields:
field enums: list[CalldataDescriptorInstructionEnumValueV1] [Required]

Descriptor and metadata to craft ENUM APDUs.

field fields: list[CalldataDescriptorInstructionFieldV1] [Required]

Descriptor and metadata to craft FIELD APDUs.

field maps: list[CalldataDescriptorInstructionMapEntryV1] [Optional]

Descriptor and metadata to craft MAP_ENTRY APDUs, one per key of the maps looked up by the device. Only the entries matching the keys read from the transaction need to be provided.

field transaction_info: CalldataDescriptorInstructionTransactionInfoV1 [Required]

Descriptor and metadata to craft a TRANSACTION_INFO APDU.

field version: Literal['v1'] = 'v1'

Version of the descriptor type (not the version of this specific descriptor, the version of the descriptor specification)