Skip to content

publicKeyLiteral

publicKeyLiteral(value): InstructionArg

Defined in: ootle/src/helpers/cbor-literal.ts:236

CBOR-encode a RistrettoPublicKeyBytes as a 32-byte CBOR byte string. A compressed Ristretto point is not a tagged value — it is a bare byte string, the same shape bytesLiteral produces. Accepts a 64-hex-char string or a 32-byte Uint8Array; this wrapper exists so the public-key intent and the length check are explicit at the call site.

string | Uint8Array<ArrayBufferLike>

InstructionArg

if the key is not exactly 32 bytes.