toip.tools

function · Browser and Node

toField

The first 31 bytes of a 32-byte digest, big-endian. 248 bits, so always below the modulus.

@toip-tools/anon-membershipView source
TypeScriptImport
import { toField } from "@toip-tools/anon-membership";

Declaration

TypeScriptSignature
toField(digest: Uint8Array): Field;

Parameters

digestrequired
Uint8Array<ArrayBufferLike>

Returns

bigint