Skip to main content

Module batch

Module batch 

Source
Available on crate feature signer only.
Expand description

Postcard-encoded messages for batched external PCZT signing.

Responses only represent Orchard-protocol spend authorization signatures for the Orchard and Ironwood value pools. Sapling spend authorization signatures are not represented.

Request and response correlation is the responsibility of the application transport. Requests encode one shared PCZT version followed by headerless, version-specific PCZT payloads, so every PCZT in a batch uses the same encoding version.

The request encoding is "PCZB" || batch_version_le || pczt_version_le || body, and the response encoding is "PCZS" || batch_version_le || body. Both version fields are four-byte little-endian integers, and each body uses the Postcard wire format.

Structs§

BatchSignRequest
A request to sign several PCZTs as one operation.
BatchSignResponse
The signatures produced for a BatchSignRequest, in request order. Entry i contains the signatures produced for PCZT i in the request.

Enums§

EncodingError
Errors that can occur while encoding batched PCZT signing messages.
ParseError
Errors that can occur while parsing batched PCZT signing messages.

Constants§

VERSION
The current batched PCZT signing wire version.