From 83661c095a831c862898e8c544bc9e50d893de8f Mon Sep 17 00:00:00 2001 From: Joe Bryan Date: Mon, 15 Oct 2018 00:11:36 -0400 Subject: [PATCH] clarifies comments, removes todos, minor refactoring --- sys/vane/ames.hoon | 33 ++++++++++++++++----------------- sys/zuse.hoon | 2 +- 2 files changed, 17 insertions(+), 18 deletions(-) diff --git a/sys/vane/ames.hoon b/sys/vane/ames.hoon index 7c1cad7b8..06ad4aed0 100644 --- a/sys/vane/ames.hoon +++ b/sys/vane/ames.hoon @@ -18,7 +18,7 @@ -- :::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: section 4aA, identity logic :: - :: removed :: + :: removed in favor of jael/ethereum :: :: :::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: section 4aB, packet format :: @@ -80,7 +80,6 @@ ++ clon ^- life :: if we don't have a +deed for :her, we guess 1 - :: XX should we keep guessing 0? is this used for crypto? :: ?~(lew.wod.dur 1 life.u.lew.wod.dur) :: XX move this logic into %zuse, namespaced under %jael? @@ -127,7 +126,7 @@ * :: our initial sponsor :: - :: XX ensure initial? + :: XX jael scry :: =(her (sein:title our)) == @@ -299,13 +298,16 @@ (en:cub:cluy q.u.yed.caq.dur (jam ham)) ?: &(=(~ lew.wod.dur) =(%back -.ham)) [wasp ..wisp] + :: we include our deed in asymmetric skins (%open and %full) + :: if we're a comet or moon, or if we're sponsoring her + :: =/ bil=(unit deed) - ?. ?| ?=(?(%earl %pawn) (clan:title our)) - ?& =(our (sein:title her)) - :: XX is this necessary? - :: - !=(our her) - == == + =/ rac (clan:title our) + ?. ?| ?=(?(%earl %pawn) rac) + :: XX jael scry + :: + ?&(!?=(%czar rac) =(our (sein:title her))) + == ~ `law.saf =/ yig sen @@ -612,13 +614,10 @@ ?> (~(has by vein) life) ?> =(life (roll ~(tap in ~(key by vein)) max)) :: - ~| %vein-stub + ~| %strange-vein ?< (~(has by urb.ton.fox) our) :: - =/ can=(list ship) - %- flop - |- ^- (list ship) - ?:((lth our 256) ~ =+(seg=(sein:title our) [seg $(our seg)])) + =/ can=(list ship) (tail (saxo:title our)) :: =/ new=wund %+ turn @@ -822,7 +821,7 @@ :: request keys and continue processing packet if :: :her is our initial sponsor (TOFU) :: - :: XX ensure initial? + :: XX jael scry :: XX update state so we only ask once? :: =? +>.$ ?& =(~ lew.wod.dur.diz) @@ -830,9 +829,9 @@ == (emit %beer our her) :: request keys and drop packet if :her is (or is a moon of) - :: an unfamilar on-chain ship (and not our initial sponsor) + :: an unfamilar on-chain ship (and not our sponsor) :: - :: XX ensure initial? + :: XX jael scry? :: =/ rac (clan:title her) =/ seg (sein:title her) diff --git a/sys/zuse.hoon b/sys/zuse.hoon index f4594f2a8..e3f593fce 100644 --- a/sys/zuse.hoon +++ b/sys/zuse.hoon @@ -577,7 +577,7 @@ olz/(map flap cape) :: packets completed wab/(map ship bath) :: relationship == :: - +$ deed [=life =pass oath=(unit oath:pki:jael)] :: stage/pub/sig + +$ deed [=life =pass oath=(unit oath:pki:jael)] :: life/pub/sig ++ dore :: foreign contact $: wod/road :: connection to caq/clot :: symmetric key state