Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

LibMachineValidityProof

Git Source

Functions

validate

Validate a machine and prove its outputs Merkle root.

May raise InvalidSiblingsArrayLength, InvalidMachineMerkleProof, InvalidPostEpochMachineIflagsYRegister, or InvalidPostEpochMachineHtifTohostRegister.

function validate(MachineValidityProof calldata v, bytes32 machineMerkleRoot)
    internal
    pure
    returns (bytes32 outputsMerkleRoot);

Parameters

NameTypeDescription
vMachineValidityProofThe machine validity proof
machineMerkleRootbytes32The machine Merkle root

Returns

NameTypeDescription
outputsMerkleRootbytes32The proven outputs Merkle root