UNPKG
hash160
Version:
latest (0.0.5)
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
hash160
github.com/brain-wallet/hash160
brain-wallet/hash160
hash160
/
index.js
9 lines
(7 loc)
•
197 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
import
ripemd
from
'./js/ripemd.js'
import
sha256
from
'./js/sha256.js'
export
default
async
function
hash160
(
str
) {
const
hex =
await
sha256
(str)
const
res =
await
ripemd
(hex)
return
res }