Skip to content

Commit

Permalink
no more buffer in hdkey generation PSBT
Browse files Browse the repository at this point in the history
  • Loading branch information
basilesportif authored and ixv committed May 27, 2021
1 parent 7b39efd commit 53c1c3f
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions lib/btc.hoon
Original file line number Diff line number Diff line change
Expand Up @@ -324,15 +324,20 @@
%input 0x6
%output 0x2
==
=/ coin-type=hexb
?- network.h
%main
1^0x0
%testnet
1^0x1
==
:- (cat:byt ~[1^typ pubkey.h])
%- cat:byt
:~ fprint.h
%- to-byts:buf
:~ `@ux`bipt.h 0x0 0x0 0x80
?:(?=(%main network.h) 0x0 0x1) 0x0 0x0 0x80
0x0 0x0 0x0 0x80
`@ux`chyg.h 0x0 0x0 0x0
==
1^`@ux`bipt.h 3^0x80
coin-type 3^0x80
4^0x80
1^`@ux`chyg.h 3^0x0
(flip:byt 4^idx.h)
==
::
Expand Down

0 comments on commit 53c1c3f

Please sign in to comment.