arvo: Simplify the actual +code implemetation in jael.

This commit is contained in:
Elliot Glaysher 2020-10-15 13:17:20 -04:00
parent 16b3edfbd0
commit 9e2039ee2f
2 changed files with 1 additions and 8 deletions

View File

@ -1033,10 +1033,7 @@
=/ who (slaw %p i.tyl)
?~ who [~ ~]
=/ sec (~(got by jaw.own.pki.lex) lyf.own.pki.lex)
=/ cub (nol:nu:crub:crypto sec)
:: XX use pac:ex:cub?
::
``[%noun !>((end 6 1 (shaf %pass (shax sec:ex:cub))))]
``[%noun !>((end 6 1 (shaf %pass (shax sec))))]
::
%life
?. ?=([@ ~] tyl) [~ ~]

View File

@ -477,10 +477,6 @@ shaf salt ruz = (mix a b)
-- Given a ring, derives the network login code.
--
-- The Urbit implementation of +code is just overly complicated. It first
-- takes the ring, then passes it into the encryption system, and then has
-- the encryption system spit the input ring back out.
--
-- Note that the network code is a patp, not a patq: the bytes have been
-- scrambled.
deriveCode :: Ring -> Ob.Patp