Module payload

Source
Expand description

This module contains generic utilities for serializing and deserializing method calls to/from payload bytes.

It can be reused to implement a different wallet implementation as well as read and verify the contents of the transaction (for example, to display it on the screen of the hardware wallet).

Builder interface requires heap allocations and can be enabled with payload-builder feature, while the rest works in no_std environment without a global allocator.

Modules§

builder
Transaction payload creation utilities

Structs§

TransactionInput
The type of transaction input could be either explicit value or output index.
TransactionPayloadDecoder
Decoder for transaction payload created using TransactionPayloadBuilder.

Enums§

TransactionInputType
TransactionMethodContext
TransactionPayloadDecoderError
Errors for TransactionPayloadDecoder