mirror of
https://github.com/urbit/shrub.git
synced 2024-12-22 02:11:38 +03:00
37 lines
688 B
Plaintext
37 lines
688 B
Plaintext
/- *resource
|
|
|%
|
|
+$ atom @u
|
|
+$ index (list atom)
|
|
+$ uid [=resource =index]
|
|
::
|
|
:: mug 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
|
|
==
|
|
::
|
|
+$ validated-portion
|
|
$: parent-hash=(unit hash)
|
|
author=ship
|
|
time-sent=time
|
|
contents=(list content)
|
|
==
|
|
::
|
|
+$ content
|
|
$% [%text text=cord]
|
|
[%url url=cord]
|
|
[%code expression=cord output=(list tank)]
|
|
[%reference =uid]
|
|
:: TODO: maybe use a cask?
|
|
::[%cage =cage]
|
|
==
|
|
--
|