mirror of
https://github.com/urbit/shrub.git
synced 2025-01-05 19:46:50 +03:00
Use ed to verify %full messages.
Modify seal/tear so that the messages are authenticated. After a %full message, there is a shared secret, so no more authentication should be necessary.
This commit is contained in:
parent
120e08afa9
commit
07f391c9c0
@ -284,13 +284,15 @@
|
||||
=+ =+ her=(hail a)
|
||||
tie=(tide c.pub.her)
|
||||
=+ [hog=(en tie b) ben=(en b c)]
|
||||
(jam hog ben)
|
||||
=+ sig=(sign:ed ben e.sek)
|
||||
(jam hog ben sig)
|
||||
++ tear
|
||||
|= [a=pass b=@]
|
||||
^- (unit ,[p=@ q=@])
|
||||
=+ bod=((hard ,[p=@ q=@]) (cue b))
|
||||
=+ bod=((hard ,[p=@ q=@ s=@]) (cue b))
|
||||
=+ =+ her=(hail a)
|
||||
tie=(tide c.pub.her)
|
||||
?. (veri:ed s.bod q.bod (end 8 1 (rsh 3 1 a))) ~
|
||||
=+ hog=(de tie p.bod)
|
||||
?~ hog ~
|
||||
=+ ben=(de u.hog q.bod)
|
||||
|
Loading…
Reference in New Issue
Block a user