afizzycola / explicit-bitcoin-lib

A Bitcoin library written in Typescript and which provides explicit classes for use in Bitcoin development and testing
1 stars 0 forks source link

Implement tapLeaf in PaymentEndPoint #26

Open afizzycola opened 3 years ago

afizzycola commented 3 years ago
const str = "029000b275209997a497d964fc1a62885b05a51166a65a90df00492c8d7cf61d6accf54803beac"
const buff = Buffer.from(str, 'hex')

const intLength = buff.length;
const hexLength = intLength.toString(16)

console.log(intLength, hexLength)