urbit/gen/pope.hoon

29 lines
731 B
Plaintext
Raw Normal View History

2016-02-05 05:57:44 +03:00
::
2016-02-05 06:05:37 +03:00
:::: /hoon/pope/gen
2016-02-05 05:57:44 +03:00
::
/? 310
2015-09-12 00:15:25 +03:00
:: Input twitter keys
/- sole
!:
=+ cryp=bruw :: XX change to ec2 ++brew eventually
=+ [sole]
2015-09-12 03:24:51 +03:00
:- %ask
|= $: {now/@da eny/@uvI bec/beak}
{{who/ship $~} $~}
2015-09-12 00:15:25 +03:00
==
^- (sole-result (cask tang))
%+ sole-yo leaf+"generating carrier {(scow %p who)} (#{(scow %ud who)})"
2015-09-12 00:15:25 +03:00
%+ sole-lo [%| %pope-pass "passphrase: "]
%+ sole-go (boss 256 (star prn))
|= fra/@t
2015-09-12 00:15:25 +03:00
%+ sole-lo [%| %pope-none "[press enter to compute]"] :: XX oy
%+ sole-go (easy ~)
|= $~
2015-09-12 00:15:25 +03:00
=+ bur=(shax (add who (shax fra)))
~& %computing-fingerprint
=+ arc=(cryp 2.048 bur)
%+ sole-so %tang
:~ leaf+"generator: {(scow %uw bur)}"
leaf+"fingerprint: {(scow %uw fig:ex:arc)}"
2015-09-12 00:15:25 +03:00
==