urbit/pkg/arvo/sur/post.hoon

38 lines
723 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]
[%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
==
--