Encode a variable-length array with u32 LE count prefix.
16.9. jar1 Codec
The jar1 variant uses Codec.Jar1 — all collection counts and byte lengths
are encoded as u32 LE (4 bytes), replacing JAM's variable-length natural encoding.
Numeric fields (service IDs, gas values, etc.) use fixed-width LE encoding throughout.
Jar.Codec.Jar1.encodeCountPrefixed.{u_1} {α : Type u_1} (f : α → ByteArray) (xs : Array α) : ByteArrayJar.Codec.Jar1.encodeCountPrefixed.{u_1} {α : Type u_1} (f : α → ByteArray) (xs : Array α) : ByteArray
Jar.Codec.Jar1.encodeLengthPrefixed (data : ByteArray) : ByteArrayJar.Codec.Jar1.encodeLengthPrefixed (data : ByteArray) : ByteArray
Length-prefixed byte blob: u32 LE byte-length + raw bytes.
16.9.1. jar1 Extrinsic Encoders
Encode a Ticket.
Encode a TicketProof.
Encode an Assurance. Bitfield uses u32 byte-length prefix.
Encode a single Judgment.
Encode a Verdict. Judgments use u32 count prefix.
Encode a Culprit.
Encode a Fault.
Encode the disputes extrinsic.
Encode the preimages extrinsic.
16.9.2. jar1 Work Type Encoders
Encode an AvailabilitySpec. erasure_shards NOT encoded (wire format).
Encode a RefinementContext.
Encode a WorkDigest. All numeric fields are fixed-width (no compact).
Encode a WorkReport. All numeric fields are fixed-width (no compact).
Encode a Guarantee.
16.9.3. jar1 Block Encoders
Encode an EpochMarker. Validators always u32 count-prefixed.
Encode an unsigned header.
Encode a full header (unsigned + seal).
Encode an extrinsic.