btcsuite / btcd

An alternative full node bitcoin implementation written in Go (golang)
https://github.com/btcsuite/btcd/blob/master/README.md
ISC License
6.11k stars 2.32k forks source link

Ask about psbt: func (p *Packet) Serialize(w io.Writer) #1975

Open lenhatquang97 opened 1 year ago

lenhatquang97 commented 1 year ago

Hello everyone, I realize that when using Serialize to convert into bytes, it removes witness because of SerializeNoWitness. How do I serialize so that I can keep my original witness?

And also, in BIP174, what kind of global keytype is used for witness transaction.