shrub/pkg/landscape/sur/post.hoon

64 lines
1.1 KiB
Plaintext
Raw Normal View History

2020-06-02 22:44:22 +03:00
/- *resource
|%
+$ index (list atom)
+$ uid [=resource =index]
::
:: +sham (half sha-256) hash of +validated-portion
+$ hash @ux
::
+$ signature [p=@ux q=ship r=life]
2020-06-02 22:44:22 +03:00
+$ signatures (set signature)
+$ post
$: author=ship
=index
time-sent=time
2020-06-02 22:44:22 +03:00
contents=(list content)
hash=(unit hash)
=signatures
==
::
+$ indexed-post [a=atom p=post]
::
+$ validated-portion
$: parent-hash=(unit hash)
author=ship
2020-06-02 22:44:22 +03:00
time-sent=time
contents=(list content)
2020-06-02 22:44:22 +03:00
==
::
+$ reference
$% [%graph group=resource =uid]
[%group group=resource]
2021-09-21 04:34:23 +03:00
[%app =ship =desk =path]
==
::
2020-06-02 22:44:22 +03:00
+$ content
2020-06-10 23:47:18 +03:00
$% [%text text=cord]
2020-11-03 03:39:24 +03:00
[%mention =ship]
2020-06-10 23:47:18 +03:00
[%url url=cord]
2020-06-02 22:44:22 +03:00
[%code expression=cord output=(list tank)]
[%reference =reference]
2020-06-02 22:44:22 +03:00
==
::
++ 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
==
--
2020-06-02 22:44:22 +03:00
--