Skip to main content

calculateProofRoot

@totemsdk/server


@totemsdk/server / calculateProofRoot

Function: calculateProofRoot()

calculateProofRoot(leafData, proof): Bytes

Calculate root from leaf data and proof Matches SignatureProof.getRootPublicKey() in Java

From SignatureProof.java: MMRData pubentry = MMRData.CreateMMRDataLeafNode(mPublicKey, MiniNumber.ZERO); return mProof.calculateProof(pubentry).getData();

Parameters​

leafData​

MMRData

proof​

MMRProof

Returns​

Bytes