EncryptedData
Defined in: ootle/src/stealth/primitives.ts:67
Opaque carrier for an output’s ciphertext bytes (the AEAD-encrypted value/mask/memo payload). Treated as opaque here: the stealth module never inspects the plaintext structure, only carries the bytes across the JSON boundary.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new EncryptedData(
bytes):EncryptedData
Defined in: ootle/src/stealth/primitives.ts:70
Parameters
Section titled “Parameters”Uint8Array
Returns
Section titled “Returns”EncryptedData
Methods
Section titled “Methods”toBytes()
Section titled “toBytes()”toBytes():
Uint8Array
Defined in: ootle/src/stealth/primitives.ts:80
Raw ciphertext bytes (defensive copy).
Returns
Section titled “Returns”Uint8Array
toHex()
Section titled “toHex()”toHex():
string
Defined in: ootle/src/stealth/primitives.ts:85
Hex encoding.
Returns
Section titled “Returns”string
fromHex()
Section titled “fromHex()”
staticfromHex(hex):EncryptedData
Defined in: ootle/src/stealth/primitives.ts:75
Parse a hex string into EncryptedData (variable length).
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”EncryptedData