mirror of
https://github.com/urbit/shrub.git
synced 2024-12-19 08:32:39 +03:00
54b3982b42
This commit changes the type of update:graph-store and as such, a new mark has been created. graph-store now consumes and produces %graph-update-1. This new mark type is backwards incompatible with the previous mark.
64 lines
1.1 KiB
Plaintext
64 lines
1.1 KiB
Plaintext
/- *resource
|
|
|%
|
|
::
|
|
++ post-zero
|
|
|%
|
|
::
|
|
+$ content
|
|
$% [%text text=cord]
|
|
[%mention =ship]
|
|
[%url url=cord]
|
|
[%code expression=cord output=(list tank)]
|
|
[%reference =uid]
|
|
==
|
|
::
|
|
+$ post
|
|
$: author=ship
|
|
=index
|
|
time-sent=time
|
|
contents=(list content)
|
|
hash=(unit hash)
|
|
=signatures
|
|
==
|
|
--
|
|
|
|
+$ index (list atom)
|
|
+$ uid [=resource =index]
|
|
::
|
|
:: +sham (half sha-256) hash of +validated-portion
|
|
+$ hash @ux
|
|
::
|
|
+$ signature [p=@ux q=ship r=life]
|
|
+$ signatures (set signature)
|
|
+$ post
|
|
$: author=ship
|
|
=index
|
|
time-sent=time
|
|
contents=(list content)
|
|
hash=(unit hash)
|
|
=signatures
|
|
==
|
|
::
|
|
+$ indexed-post [a=atom p=post]
|
|
::
|
|
+$ validated-portion
|
|
$: parent-hash=(unit hash)
|
|
author=ship
|
|
time-sent=time
|
|
contents=(list content)
|
|
==
|
|
::
|
|
+$ reference
|
|
$% [%graph group=resource =uid]
|
|
[%group group=resource]
|
|
==
|
|
::
|
|
+$ content
|
|
$% [%text text=cord]
|
|
[%mention =ship]
|
|
[%url url=cord]
|
|
[%code expression=cord output=(list tank)]
|
|
[%reference =reference]
|
|
==
|
|
--
|