Expand description
Shared AURA authorization types, signing payloads, and collator proofs.
Structs§
- Auth
Config - The AURA authorizer config embedded in every work package.
- Auth
Token - Auth
Trace - The collator authenticated by AURA for the work package.
- ParaId
- Unique identifier of a parachain.
- Parachain
Candidate - Parachain work-item payload (§3.2). The PoV is carried in extrinsic 0.
- Work
Package Body - A work package awaiting its authorization token.
Enums§
- Authorization
Error - AURA authorization failed.
- Candidate
Error - Invalid candidate payload or parachain identity.
- Collator
Proof Error - Invalid collator set or index supplied to the proof builder.
- Config
Error - Invalid AURA configuration or work items that do not satisfy it.
- Token
Error - Authorization token validation failed.
Constants§
- WORK_
PACKAGE_ SIGN_ CTX - Domain separator for the token-free work-package hash signed by AURA collators.
Traits§
- Signature
Verifier - Signature verification for Collator keys.
Functions§
- build_
collator_ proof - Build an unpadded Merkle tree and return its root and proof for
collator_index. - expected_
siblings - Count sibling hashes needed to prove membership of the value at the position.
- signable_
work_ package_ hash - Hash the token-free work-package fields signed by the collator.
Type Aliases§
- Collator
Key - Raw 32-byte collator public key.
- Collator
Signature - A collator’s signature over an authorization token’s signing payload.