return to top
source
HasSize
A type has a size in units of β when it embeds into Vector β size. A duplex sponge over units β absorbs and squeezes elements of such a type size units at a time.
β
Vector β size
size
Ported verbatim from ArkLib (ArkLib/Data/Classes/HasSize.lean).
ArkLib/Data/Classes/HasSize.lean
Type class for types that has an injective mapping to a vector of a given length size of another type (often UInt8).
UInt8