diff --git a/lib/crypto/crypto.js b/lib/crypto/crypto.js index db07d874..9447ff08 100644 --- a/lib/crypto/crypto.js +++ b/lib/crypto/crypto.js @@ -559,6 +559,9 @@ crypto.checkMerkleBranch = function checkMerkleBranch(hash, branch, index) { return hash; }; +if (native) + crypto.checkMerkleBranch = native.checkMerkleBranch; + /** * Generate some random bytes. * @function