urbit/try/bin/edsi.hoon
2014-01-30 12:49:36 -08:00

21 lines
390 B
Plaintext

!:
:: /=try=/bin/edsi/hoon
::
:: ed25519 signature toy.
::
:: Needless to say, don't use this for anything real. Not only will it be
:: embarrassingly slow, but it'll probably mail your private key to the NSA.
::
=> %= .
+
=> +
^/===/lib/cryo
==
|= [est=time eny=@uw]
|= [sk=@ pk=@ m=@ ~]
^- bowl
=+ si=(sign:ed m sk pk)
:_ ~ :_ ~
:- %$
!> `@ux`si