mirror of
https://github.com/urbit/shrub.git
synced 2024-12-30 07:35:19 +03:00
new shit w sur
This commit is contained in:
parent
5e9d7434d2
commit
66fceb6b12
@ -1,13 +1,13 @@
|
|||||||
## NOTE
|
## NOTE
|
||||||
The below requires norsyr's fix to `decompress-point` in order to work.
|
The below requires norsyr's fix to `decompress-point` in order to work.
|
||||||
|
|
||||||
## base58
|
## Working with BTC RPC Library
|
||||||
Converts a base58 zpub to hex
|
|
||||||
```
|
```
|
||||||
+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**
|
**Import lib; optionally set up env**
|
||||||
```
|
```
|
||||||
=btca -build-file %/lib/btc-address/hoon
|
=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))
|
`@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**
|
**Test xpub parsing**
|
||||||
```
|
```
|
||||||
|
0
sur/bippy-provider-hook.hoon
Normal file
0
sur/bippy-provider-hook.hoon
Normal file
4
sur/bippy-provider-store.hoon
Normal file
4
sur/bippy-provider-store.hoon
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
|%
|
||||||
|
+$ credentials [rpc-url=@t rpc-user=@t rpc-password=@t]
|
||||||
|
+$ clients (set ship)
|
||||||
|
--
|
3
sur/bippy-wallet-store.hoon
Normal file
3
sur/bippy-wallet-store.hoon
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
|%
|
||||||
|
+$ xpub tape
|
||||||
|
--
|
Loading…
Reference in New Issue
Block a user