From 07f391c9c0e8c9c7603f3827257ffa86f1ef3e9b Mon Sep 17 00:00:00 2001 From: Jared Hance Date: Tue, 27 May 2014 15:23:33 -0400 Subject: [PATCH] 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. --- arvo/zuse.hoon | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arvo/zuse.hoon b/arvo/zuse.hoon index e8e380492..2db08f31e 100644 --- a/arvo/zuse.hoon +++ b/arvo/zuse.hoon @@ -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)