xanimo / dogecoin-payment-server-archive

MIT License
1 stars 3 forks source link

Using PBST #13

Open rllola opened 2 years ago

rllola commented 2 years ago

Do we really need to use PBST format ?

Today when announcing a payment channel to the server it requires sending the transaction in the pbst format (see https://en.bitcoin.it/wiki/BIP_0174).

Adding support for pbst format is doable but this is not required for it to work. We could just send the transaction in hex and the redeem script associated to the P2SH format.

xanimo commented 2 years ago

afaik if we're going to keep using bitcoin-js we should since they're planning on deprecating their TransactionBuilder and instead recommend to use PSBT as default for creating tx object.

but if there is an easier more efficient way just sending hex then i'd be cool with that.