From f53502e198de12717a28dc7b9177e9e95fdc27c8 Mon Sep 17 00:00:00 2001 From: Irakli Gozalishvili Date: Tue, 9 Apr 2024 11:46:41 -0700 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Vasco Santos --- w3-blob.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/w3-blob.md b/w3-blob.md index 7ed2b90..2e0beec 100644 --- a/w3-blob.md +++ b/w3-blob.md @@ -56,12 +56,12 @@ Following diagram illustrates execution flow. Alice invokes `/space/content/add/ ```mermaid flowchart TB Add("⏯️ /space/content/add/blob 👩‍💻 🤖") -AddOk("🧾 { ok: { claim } }") +AddOk("🧾 { ok: { site } }") subgraph accept Accept("⏯️ /service/blob/accept 🤖") -AcceptOk("🧾 { ok: { claim } }") +AcceptOk("🧾 { ok: { site } }") end subgraph put @@ -155,9 +155,9 @@ Shows an example receipt for the above `/space/content/add/blob` capability invo "ok": { // result of the add is the content (location) claim // that is produced as result of "bafy..accept" - "blob": { + "site": { "ucan/await": [ - ".out.ok.blob", + ".out.ok.site", { "/": "bafy...accept" } ] } @@ -472,7 +472,7 @@ Receipt MUST not have any effects. ## Accept Blob -Authorized agent MAY invoke `/service/blob/accept` capability on the [provider] subject. Invocation MUST either succeed when content is delivered to an allocated `address` or fail if either allocation failed or expired before content was delivered. +Authorized agent MAY invoke `/service/blob/accept` capability on the [provider] subject. Invocation MUST either succeed when content is delivered at allocated site or fail if either allocation failed or expired before content was delivered. Invocation MUST block until content is delivered. Implementation MAY resume when content is sent to the allocated address or await until client signals that content has been delivered using [put blob receipt].