mirror of
https://github.com/urbit/shrub.git
synced 2024-12-28 22:54:15 +03:00
arvo: Simplify the actual +code implemetation in jael.
This commit is contained in:
parent
16b3edfbd0
commit
9e2039ee2f
@ -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) [~ ~]
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user