psbt skeleton

This commit is contained in:
timlucmiptev 2020-12-09 19:33:50 +02:00 committed by ixv
parent 8340905b30
commit f8eaa347c5

View File

@ -67,6 +67,34 @@
::
++ psbt
|%
++ en
|%
++ globals
|= =rawtx
^- map:^psbt
*map:^psbt
++ inputs
|= (list in:^psbt)
^- map:^psbt
*map:^psbt
++ outputs
|= (list out:^psbt)
^- map:^psbt
*map:^psbt
--
:: +encode: make base64 cord of PSBT
::
++ encode
|= [=rawtx =txid inputs=(list in:^psbt) outputs=(list out:^psbt)]
^- cord
:: TODO
:: make global map
:: raw tx hex
:: turn each input and output into a map (or ~)
:: put the 0x0 separator between all
:: parse to hex
:: encode as base64!
*cord
:: +create: make base64 cord of PSBT
::
++ create