yenom/BitcoinKit

how to generate a p2sh-p2wpkh address?

nealsun opened this issue · 1 comments

I'm going to build a p2sh-p2wpkh address, and how to build this type script 0x0014{20-byte keyhash}

Script()
   .append(.OP_0)
   .appendData(publicKey.pubkeyHash)

I figured out.