2018-09-07 04:41:16 +03:00
|
|
|
:: Create a private key-file
|
|
|
|
::
|
|
|
|
/- *sole
|
|
|
|
::
|
|
|
|
:- %ask
|
2018-10-14 21:25:09 +03:00
|
|
|
|= $: [now=@da eny=@uvJ bec=beak]
|
|
|
|
[who=ship ~]
|
|
|
|
life=_1
|
2018-09-07 04:41:16 +03:00
|
|
|
==
|
|
|
|
^- (sole-result (cask cord))
|
2018-10-14 21:25:09 +03:00
|
|
|
%+ sole-yo leaf+"generating keys for {(scow %p who)}, life #{(scow %ud life)}"
|
2018-09-07 04:41:16 +03:00
|
|
|
%+ sole-lo [%| %pope-pass "passphrase: "]
|
|
|
|
%+ sole-go (boss 256 (star prn))
|
|
|
|
|= fra/@t
|
|
|
|
=/ bur (shaz (add who (shaz fra)))
|
|
|
|
=/ cub (pit:nu:crub:crypto 512 bur)
|
|
|
|
::
|
|
|
|
=/ pub=pass pub:ex:cub
|
|
|
|
=/ mag=cord (end 3 1 pub)
|
|
|
|
?> =('b' mag)
|
|
|
|
=/ bod=@ (rsh 3 1 pub)
|
|
|
|
=/ cry=@ (rsh 8 1 bod)
|
|
|
|
=/ sgn=@ (end 8 1 bod)
|
|
|
|
%+ sole-yo leaf+" authentication: 0x{(render-hex-bytes:ethereum 32 sgn)}"
|
|
|
|
%+ sole-yo leaf+" networking: 0x{(render-hex-bytes:ethereum 32 cry)}"
|
|
|
|
%+ sole-yo leaf+"ethereum public keys:"
|
|
|
|
::
|
|
|
|
=/ sed=seed:able:jael
|
2018-10-14 21:25:09 +03:00
|
|
|
[who life sec:ex:cub ~]
|
2018-09-07 04:41:16 +03:00
|
|
|
%- sole-so [%atom (scot %uw (jam sed))]
|