new shit w sur

This commit is contained in:
timlucmiptev 2020-10-01 14:53:47 +03:00 committed by ixv
parent 5e9d7434d2
commit 66fceb6b12
4 changed files with 12 additions and 5 deletions

View File

@ -1,13 +1,13 @@
## NOTE
The below requires norsyr's fix to `decompress-point` in order to work.
## base58
Converts a base58 zpub to hex
## Working with BTC RPC Library
```
+bip84 "zpub6rFR7y4Q2AijBEqTUquhVz398htDFrtymD9xYYfG1m4wAcvPhXNfE3EfH1r1ADqtfSdVCToUG868RvUUkgDKf31mGDtKsAYz2oz2AGutZYs"
:btc-node-hook|command [%credentials 'http://127.0.0.1:18443' 'poopman' 'chAiM31eeJ1MK3y8BC3mR9q2']
:btc-node-hook|action [%get-block-count ~]
```
### btc-address
## btc-address
**Import lib; optionally set up env**
```
=btca -build-file %/lib/btc-address/hoon
@ -36,7 +36,7 @@ Converts a base58 zpub to hex
`@ux`(compress-point:ecc pub:(derive-public:(derive-public:(from-extended:bip32 parent-zpub) 0) 0))
```
## Deprecateed: Sample Child Derivations
## Deprecated: Sample Child Derivations
**Test xpub parsing**
```

View File

View File

@ -0,0 +1,4 @@
|%
+$ credentials [rpc-url=@t rpc-user=@t rpc-password=@t]
+$ clients (set ship)
--

View File

@ -0,0 +1,3 @@
|%
+$ xpub tape
--