Skip to content

Instantly share code, notes, and snippets.

@Gozala
Created April 9, 2024 23:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gozala/88b65a62a9357642fc63aa077632c05d to your computer and use it in GitHub Desktop.
Save Gozala/88b65a62a9357642fc63aa077632c05d to your computer and use it in GitHub Desktop.
(Multihash : Bytes)
(Blob : {:size Integer :digest Multihash })
(blob/add
:input {:sub DID :blob Blob }
:address (memory/allocate
:space .input.sub
:blob .input.blob)
:content (http/put
:url .address.out.ok.url
:headers .address.out.ok.headers
:body .input.blob)
:memory (memory/verify
:await .content.out.ok
:space .input.sub
:body .input.blob)
: {:ok {:site .memory.out.ok.site}})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment