ProofService

ProofService handles checking the validity of transactions. In the Plasma Group plasma chain design, each client only receives transactions that are relevant to that client. The client then needs to check that the received transaction is actually valid. This is carried out via a transaction proof attached to each transaction. If you’re interested in learning more about transaction proofs, check out our more detailed transaction proof specification document.


checkProof

proofService.checkProof(transaction, proof)

Checks the validity of a transaction using the given proof.

Parameters

  1. transaction - Object: A Transaction object.

2. deposits - Array<Deposit>: An array of Deposits. 2. proof - Object: A Proof object.

Returns

Promise<boolean>: true if the transaction is valid, false otherwise.