Thruput TypeScript protocol bindings
    Preparing search index...

    Type Alias FixedBytes<N>

    FixedBytes: Uint8Array & { length: N }

    A Uint8Array that must contain exactly N bytes.

    The wire format reads and writes exactly N bytes for values of this type; the codec throws on any other length.

    N is a literal type, so a plain Uint8Array — whose length is number — is not assignable here. Use fixedBytes to build one, or the generated factory for a fixed opaque typedef (sha256Hash(data) and friends), both of which check the length at runtime so no cast is needed.

    Type Parameters

    • N extends number