urbit/pkg/arvo/sur/post.hoon

39 lines
746 B
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
==
::
+$ 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 =uid]
:: TODO: maybe use a cask?
::[%cage =cage]
2020-06-02 22:44:22 +03:00
==
--