mirror of
https://github.com/urbit/shrub.git
synced 2024-12-20 01:01:37 +03:00
-graph-add-nodes: add commented out signature support
This commit is contained in:
parent
1abd45fc6c
commit
e7ad46db15
@ -1,5 +1,5 @@
|
|||||||
/- spider
|
/- spider
|
||||||
/+ strandio, store=graph-store, graph, graph-view
|
/+ strandio, store=graph-store, graph, graph-view, sig=signatures
|
||||||
=, strand=strand:spider
|
=, strand=strand:spider
|
||||||
^- thread:spider
|
^- thread:spider
|
||||||
|= arg=vase
|
|= arg=vase
|
||||||
@ -8,6 +8,7 @@
|
|||||||
=+ !<([~ =update:store] arg)
|
=+ !<([~ =update:store] arg)
|
||||||
?> ?=(%add-nodes -.q.update)
|
?> ?=(%add-nodes -.q.update)
|
||||||
=* poke-our poke-our:strandio
|
=* poke-our poke-our:strandio
|
||||||
|
;< =bowl:spider bind:m get-bowl:strandio
|
||||||
|^
|
|^
|
||||||
=. nodes.q.update
|
=. nodes.q.update
|
||||||
%- ~(gas by *(map index:store node:store))
|
%- ~(gas by *(map index:store node:store))
|
||||||
@ -61,8 +62,7 @@
|
|||||||
=* loop $
|
=* loop $
|
||||||
:- index
|
:- index
|
||||||
=* p post.node
|
=* p post.node
|
||||||
=/ hash=(unit hash:store)
|
=/ =hash:store
|
||||||
:- ~
|
|
||||||
=- `@ux`(sham -)
|
=- `@ux`(sham -)
|
||||||
:^ ?^ parent-hash
|
:^ ?^ parent-hash
|
||||||
parent-hash
|
parent-hash
|
||||||
@ -71,7 +71,12 @@
|
|||||||
time-sent.p
|
time-sent.p
|
||||||
contents.p
|
contents.p
|
||||||
%_ node
|
%_ node
|
||||||
hash.post hash
|
hash.post `hash
|
||||||
|
::
|
||||||
|
:: TODO: enable signing our own post as soon as we're ready
|
||||||
|
:: signatures.post
|
||||||
|
:: %- ~(gas in *signatures:store)
|
||||||
|
:: [(sign:sig our.bowl now.bowl hash)]~
|
||||||
::
|
::
|
||||||
children
|
children
|
||||||
?: ?=(%empty -.children.node)
|
?: ?=(%empty -.children.node)
|
||||||
@ -84,7 +89,7 @@
|
|||||||
|= [=index:store =node:store]
|
|= [=index:store =node:store]
|
||||||
^- [index:store node:store]
|
^- [index:store node:store]
|
||||||
%_ loop
|
%_ loop
|
||||||
parent-hash hash
|
parent-hash `hash
|
||||||
index index
|
index index
|
||||||
node node
|
node node
|
||||||
==
|
==
|
||||||
|
Loading…
Reference in New Issue
Block a user