minor changes

This commit is contained in:
timlucmiptev 2020-12-09 10:56:38 +02:00 committed by ixv
parent d8bd3871b8
commit 30b185a59f
4 changed files with 16 additions and 4 deletions

View File

@ -81,10 +81,12 @@ All on `~zod`:
:btc-provider|command [%set-credentials api-url='http://localhost:50002']
:btc-wallet-hook|action [%set-provider ~zod]
=scan-xpub 'zpub6rFR7y4Q2AijBEqTUquhVz398htDFrtymD9xYYfG1m4wAcvPhXNfE3EfH1r1ADqtfSdVCToUG868RvUUkgDKf31mGDtKsAYz2oz2AGutZYs'
:btc-wallet-store|action [%add-wallet scan-xpub ~ [~ 3] [~ 6]]
=fprint [%4 0xdead.beef]
:btc-wallet-store|action [%add-wallet scan-xpub fprint ~ [~ 3] [~ 6]]
:btc-wallet-store|action [%generate-address scan-xpub %0 meta=~]
```
:: make sure that the above address is watched
## Make a full TXBU

View File

@ -211,8 +211,12 @@
++ send-update
|= =update
^- card
~& >> "send-update: {<update>}"
[%give %fact ~[/clients] %btc-provider-update !>(update)]
=+ c=[%give %fact ~[/clients] %btc-provider-update !>(update)]
?: ?=(%.y -.update)
~& >> "prov. update: {<body.p.update>}"
c
~& >> "prov. err: {<p.update>}"
c
::
++ is-whitelisted
|= user=ship ^- ?

View File

@ -73,6 +73,12 @@
++ create
|= [=rawtx =txid inputs=(list in:^psbt) outputs=(list out:^psbt)]
^- cord
:: TODO
:: make global map
:: turn each input and output into a map (or ~)
:: put the 0x0 separator between all
:: parse to hex
:: encode as base64!
*cord
::
++ hd-path