UNPKG

@coolwallet/ltc

Version:
10 lines (7 loc) 218 B
import * as bitcoin from 'bitcoinjs-lib'; export function hash160(buf: Buffer): Buffer { return bitcoin.crypto.hash160(buf); } export function hash256(buf: Buffer): Buffer { return bitcoin.crypto.hash256(buf); }