From 66fceb6b12feed1b01cc1a8ea3ba857d69e9f783 Mon Sep 17 00:00:00 2001 From: timlucmiptev Date: Thu, 1 Oct 2020 14:53:47 +0300 Subject: [PATCH] new shit w sur --- bippy-scratch.md | 10 +++++----- sur/bippy-provider-hook.hoon | 0 sur/bippy-provider-store.hoon | 4 ++++ sur/bippy-wallet-store.hoon | 3 +++ 4 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 sur/bippy-provider-hook.hoon create mode 100644 sur/bippy-provider-store.hoon create mode 100644 sur/bippy-wallet-store.hoon diff --git a/bippy-scratch.md b/bippy-scratch.md index 596775e73d..6b4f2a2935 100644 --- a/bippy-scratch.md +++ b/bippy-scratch.md @@ -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** ``` diff --git a/sur/bippy-provider-hook.hoon b/sur/bippy-provider-hook.hoon new file mode 100644 index 0000000000..e69de29bb2 diff --git a/sur/bippy-provider-store.hoon b/sur/bippy-provider-store.hoon new file mode 100644 index 0000000000..fff15358c8 --- /dev/null +++ b/sur/bippy-provider-store.hoon @@ -0,0 +1,4 @@ +|% ++$ credentials [rpc-url=@t rpc-user=@t rpc-password=@t] ++$ clients (set ship) +-- diff --git a/sur/bippy-wallet-store.hoon b/sur/bippy-wallet-store.hoon new file mode 100644 index 0000000000..31d7454623 --- /dev/null +++ b/sur/bippy-wallet-store.hoon @@ -0,0 +1,3 @@ +|% ++$ xpub tape +--