Skip to content

Mask

Defined in: ootle/src/stealth/primitives.ts:41

A 32-byte blinding factor (Pedersen-commitment mask).

Use Mask.zero for the faucet / revealed-only path (an all-zero scalar).

  • Bytes32

new Mask(bytes): Mask

Defined in: ootle/src/stealth/primitives.ts:42

Uint8Array

Mask

Bytes32.constructor

toBytes(): Uint8Array

Defined in: ootle/src/stealth/primitives.ts:27

Uint8Array

Bytes32.toBytes


toHex(): string

Defined in: ootle/src/stealth/primitives.ts:31

string

Bytes32.toHex


static fromBytes(bytes): Mask

Defined in: ootle/src/stealth/primitives.ts:52

Wrap raw 32 bytes into a Mask (validates length, defensive copy in the ctor).

Uint8Array

Mask


static fromHex(hex): Mask

Defined in: ootle/src/stealth/primitives.ts:57

Parse a 64-char hex string into a Mask (validates length).

string

Mask


static zero(): Mask

Defined in: ootle/src/stealth/primitives.ts:47

All-zero 32-byte mask, for the faucet / revealed-only path.

Mask