sCrypt-Inc / cat-contracts

A collection of CATful Bitcoin smart contracts written in sCrypt.
18 stars 2 forks source link

Gen BTC Address #5

Closed yusufidimaina9989 closed 1 month ago

yusufidimaina9989 commented 2 months ago

https://github.com/sCrypt-Inc/cat-contracts/issues/3

msinkec commented 2 months ago

:+1: One more thing; Could you generate P2WPKH addresses?

It's done by using witnesspubkeyhash: https://github.com/msinkec/bitcore-lib-inquisition/blob/main/lib/publickey.js#L471