BoundedAuthorityProtocol.V1.ConsumptionEntry (Bounded Authority Protocol v1.0.0)

Copy Markdown View Source

Closed deterministic consumption-chain row producer input.

Fields

  • chain_id - the chain identity: non-empty StringOrURI of at most identifier_bytes (512) UTF-8 bytes.
  • sequence - the row's positive sequence number; 1 starts a chain.
  • previous_hash - the raw 32-byte hash of the preceding row; 32 zero bytes when sequence is 1.
  • commitment - a raw 32-byte opaque commitment to the consumption record; its preimage stays private to the caller.

Summary

Types

t()

Producer input for one consumption-chain row.

Types

t()

@type t() :: %BoundedAuthorityProtocol.V1.ConsumptionEntry{
  chain_id: binary(),
  commitment: binary(),
  previous_hash: binary(),
  sequence: pos_integer()
}

Producer input for one consumption-chain row.