From c04f557fae82fc42b3b209f1f4ca9d508214eb06 Mon Sep 17 00:00:00 2001 From: Vasco Santos Date: Mon, 22 Apr 2024 17:17:54 +0100 Subject: [PATCH] fix: blob remove should have args digest instead of content --- w3-blob.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/w3-blob.md b/w3-blob.md index 5239e5f..e1c2f07 100644 --- a/w3-blob.md +++ b/w3-blob.md @@ -700,7 +700,7 @@ Shown Invocation example illustrates Alice requesting to remove a blob stored on "aud": "did:web:web3.storage", "args": { // multihash of the blob as byte array - "content": { "/": { "bytes": "mEi...sfKg" } }, + "digest": { "/": { "bytes": "mEi...sfKg" } }, } } ``` @@ -741,7 +741,7 @@ type RemoveBlob = { cmd: "/space/content/remove/blob" sub: SpaceDID args: { - content: Multihash + digest: Multihash } } @@ -749,9 +749,9 @@ type Multihash = bytes type SpaceDID = string ``` -##### Remove Content +##### Remove Digest -The `args.content` field MUST be a [multihash] digest of the blob payload bytes. Implementation SHOULD support SHA2-256 algorithm. Implementation MAY in addition support other hashing algorithms. +The `args.digest` field MUST be a [multihash] digest of the blob payload bytes. Implementation SHOULD support SHA2-256 algorithm. Implementation MAY in addition support other hashing algorithms. ### Remove Blob Receipt