UNPKG

opnet

Version:

The perfect library for building Bitcoin-based applications.

7 lines (6 loc) 179 B
export function stringToBuffer(str) { return Buffer.from(str.replace('0x', ''), 'hex'); } export function stringBase64ToBuffer(str) { return Buffer.from(str, 'base64'); }