Skip to content

Function: parseOperatorStatement()

function parseOperatorStatement(plaintext): OperatorStatement | null;

Defined in: rine-core/dist/src/operator-statement.d.ts:33

The statement a decrypted payload carries, or null for anything short of a complete version-1 statement: no field, a wrong type, a nonce outside NONCE_PATTERN, an issued_at that is not an RFC 3339 instant with an offset. Unknown extra keys inside the statement are ignored.

Parameters

Parameter Type
plaintext string

Returns

OperatorStatement | null