Closed Nebulis closed 4 years ago
wouldn't it be the same to replace this https://github.com/Open-Attestation/open-attestation/blob/master/src/signature/signature.ts#L49
by calling https://github.com/Open-Attestation/open-attestation/blob/master/src/signature/merkle/merkle.ts#L105
that way:
checkProof(document.signature.proof, document.signature.merkleRoot, document.signature.targetHash)
wouldn't it be the same to replace this https://github.com/Open-Attestation/open-attestation/blob/master/src/signature/signature.ts#L49
by calling https://github.com/Open-Attestation/open-attestation/blob/master/src/signature/merkle/merkle.ts#L105
that way: