From 8f0d74d563d8a9bdef48fa5235e8f44f5d40a93d Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Mon, 12 Sep 2016 22:27:28 -0700 Subject: [PATCH] crypto: use native checkMerkleBranch. --- lib/crypto/crypto.js | 3 +++ 1 file changed, 3 insertions(+) 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