elements,pset: populate elements specific data for PSBTs

PSETs have a bit different requirements. The witness_utxo needs
the asset tag + values, and these should also be added to the PSET
struct separately as well. To do this, we create a new 'init' method for
elements inputs, which takes care of the elements specific things.
This commit is contained in:
niftynei
2020-07-10 16:09:46 -05:00
committed by Rusty Russell
parent bc5a817100
commit f5f85b389d
5 changed files with 184 additions and 23 deletions

View File

@@ -9,6 +9,8 @@
#include <common/bip32.h>
#include <stdbool.h>
#define ELEMENTS_ASSET_LEN 33
struct chainparams {
const char *network_name;
const char *bip173_name;