serializeScalarSketch(
sketch,options?):Uint8Array
Defined in: packages/scalar-sketch/src/serialization/binary.ts:103
Serialize exact scalar-sketch state into canonical binary bytes.
Parameters
Section titled “Parameters”sketch
Section titled “sketch”options?
Section titled “options?”Returns
Section titled “Returns”Uint8Array
Throws
Section titled “Throws”With FOREIGN_STRUCTURE,
WRONG_FAMILY, or STATE_TOO_LARGE when the value cannot be serialized.