Browse Source

use ripemd160 instead of rmd160 for electron 4.0 (#26)

master
Guangcheng Wei 6 years ago
committed by JP Richardson
parent
commit
6d496d90fc
  1. 2
      lib/hdkey.js

2
lib/hdkey.js

@ -235,7 +235,7 @@ function serialize (hdkey, version, key) {
function hash160 (buf) {
var sha = crypto.createHash('sha256').update(buf).digest()
return crypto.createHash('rmd160').update(sha).digest()
return crypto.createHash('ripemd160').update(sha).digest()
}
HDKey.HARDENED_OFFSET = HARDENED_OFFSET

Loading…
Cancel
Save