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).
Extends
Section titled “Extends”Bytes32
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Mask(
bytes):Mask
Defined in: ootle/src/stealth/primitives.ts:42
Parameters
Section titled “Parameters”Uint8Array
Returns
Section titled “Returns”Mask
Overrides
Section titled “Overrides”Bytes32.constructor
Methods
Section titled “Methods”toBytes()
Section titled “toBytes()”toBytes():
Uint8Array
Defined in: ootle/src/stealth/primitives.ts:27
Returns
Section titled “Returns”Uint8Array
Inherited from
Section titled “Inherited from”Bytes32.toBytes
toHex()
Section titled “toHex()”toHex():
string
Defined in: ootle/src/stealth/primitives.ts:31
Returns
Section titled “Returns”string
Inherited from
Section titled “Inherited from”Bytes32.toHex
fromBytes()
Section titled “fromBytes()”
staticfromBytes(bytes):Mask
Defined in: ootle/src/stealth/primitives.ts:52
Wrap raw 32 bytes into a Mask (validates length, defensive copy in the ctor).
Parameters
Section titled “Parameters”Uint8Array
Returns
Section titled “Returns”Mask
fromHex()
Section titled “fromHex()”
staticfromHex(hex):Mask
Defined in: ootle/src/stealth/primitives.ts:57
Parse a 64-char hex string into a Mask (validates length).
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Mask
zero()
Section titled “zero()”
staticzero():Mask
Defined in: ootle/src/stealth/primitives.ts:47
All-zero 32-byte mask, for the faucet / revealed-only path.
Returns
Section titled “Returns”Mask