graph-store: respond to phil's comments, request %next for clay, and compare +tear to hash

This commit is contained in:
Logan Allen 2020-07-30 14:43:40 -07:00
parent 77bdc63899
commit 7fb50a3f97
3 changed files with 15 additions and 2 deletions

View File

@ -91,10 +91,14 @@
:_ %_ state
graphs (~(put by graphs) resource [graph mark])
update-logs (~(put by update-logs) resource (gas:orm-log ~ ~))
validators
?~ mark validators
(~(put in validators) u.mark)
==
%- zing
:~ (give [/updates /keys ~] [%add-graph resource graph mark])
?~ mark ~
?: (~(has in validators) u.mark) ~
=/ wire (weld /graph (en-path:res resource))
=/ =rave:clay [%sing %b [%da now.bowl] /[u.mark]]
[%pass wire %arvo %c %warp our.bowl [%home `rave]]~
@ -545,7 +549,15 @@
|= [=wire =sign-arvo]
^- (quip card _this)
?+ -.sign-arvo (on-arvo:def wire sign-arvo)
%c [~ this]
%c
:_ this
?> ?=([%graph @ *] wire)
=/ =resource:store (de-path:res t.wire)
=/ gra=(unit marked-graph:store) (~(get by graphs) resource)
?~ gra ~
?~ q.u.gra ~
=/ =rave:clay [%next %b [%da now.bowl] /[u.q.u.gra]]
[%pass wire %arvo %c %warp our.bowl [%home `rave]]~
==
::
++ on-agent on-agent:def

View File

@ -28,7 +28,7 @@
?. =(a.u.deed r.signature) %.y
:: verify signature from ship at life
::
?=(^ (tear:as:crub:crypto b.u.deed p.signature))
=(`hash (tear:as:crub:crypto b.u.deed p.signature))
::
++ are-signatures-valid
|= [=signatures =hash now=time]

View File

@ -22,6 +22,7 @@
=tag-queries
=update-logs
archive=graphs
validators=(set mark)
==
::
+$ update