mirror of
https://github.com/urbit/shrub.git
synced 2024-12-25 04:52:06 +03:00
bip32: adds network option for bitcoin addresses
This commit is contained in:
parent
319a940c88
commit
16b7255f62
@ -168,6 +168,16 @@
|
||||
++ identity (hash160 public-key)
|
||||
++ fingerprint (cut 3 [16 4] identity)
|
||||
::
|
||||
++ address
|
||||
|= network=?(%main %regtest %testnet)
|
||||
^- @uc
|
||||
:: removes checksum
|
||||
::
|
||||
%^ rsh 3 4
|
||||
%+ en-base58check
|
||||
[4 (version-bytes network %pub %.n)]
|
||||
[20 identity]
|
||||
::
|
||||
++ prv-extended
|
||||
|= network=?(%main %regtest %testnet)
|
||||
%+ en-b58c-bip32 (version-bytes network %prv %.y)
|
||||
|
Loading…
Reference in New Issue
Block a user