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

Transcript

Git Source

Functions

appendMessage

function appendMessage(TranscriptData memory self, bytes memory message) internal pure;

appendChallenge

function appendChallenge(TranscriptData memory self, uint256 challenge) internal pure;

appendCommitments

function appendCommitments(TranscriptData memory self, BN254.G1Point[] memory comms)
    internal
    pure;

appendCommitment

function appendCommitment(TranscriptData memory self, BN254.G1Point memory comm) internal pure;

getChallenge

function getChallenge(TranscriptData memory self) internal pure returns (uint256 ret);

appendVkAndPubInput

Append the verifying key and the public inputs to the transcript.

function appendVkAndPubInput(
    TranscriptData memory self,
    IPlonkVerifier.VerifyingKey memory verifyingKey,
    uint256[] memory publicInput
) internal pure;

Parameters

NameTypeDescription
selfTranscriptData
verifyingKeyIPlonkVerifier.VerifyingKeyverifying key
publicInputuint256[]a list of field elements

appendProofEvaluations

Append the proof to the transcript. Only used for test purposes.

function appendProofEvaluations(
    TranscriptData memory self,
    IPlonkVerifier.PlonkProof memory proof
) internal pure;

Structs

TranscriptData

struct TranscriptData {
    bytes32 state;
    bytes transcript;
}