redstone::core::processor

Function process_payload

Source
pub fn process_payload(
    config: &mut impl RedStoneConfig,
    payload_bytes: impl Into<Bytes>,
) -> ProcessorResult
Expand description

The main processor of the RedStone payload.

§Arguments

  • config - Something that implements RedStoneConfig. Provides environment and crypto operations.
  • payload_bytes - Network-specific byte-list of the payload to be processed.

§Returns

  • Returns a ProcessorResult in case of successful payload processing. Will panic in case of bad input.