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:
Jared Hance 2014-05-27 15:23:33 -04:00
parent 120e08afa9
commit 07f391c9c0

View File

@ -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)