Skip to main content

persistentCommit

For the complete documentation index, see llms.txt

@midnight-ntwrk/ledger v3.0.2 • Readme | API


@midnight-ntwrk/ledger v3.0.2 / persistentCommit

Function: persistentCommit()

Internal

persistentCommit(
align,
val,
opening): Value

Internal implementation of the persistent commitment primitive

Parameters​

• align: Alignment

• val: Value

• opening: Value

Returns​

Value

Throws​

If val does not have alignment align, opening does not encode a 32-byte bytestring, or any component has a compress alignment