calculateProofRoot
@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
proof
Returns
Bytes