# `BoundedAuthorityProtocol.V1.ConsumptionEntry`
[🔗](https://github.com/baselabs/bounded_authority_protocol/blob/v1.0.0/lib/bounded_authority_protocol/v1/consumption_entry.ex#L1)

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.

# `t`

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

Producer input for one consumption-chain row.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
