Skip to content

Commit

Permalink
fix: blob remove should have args digest instead of content
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos committed Apr 22, 2024
1 parent a09ceac commit c04f557
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions w3-blob.md
Original file line number Diff line number Diff line change
Expand Up @@ -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" } },
}
}
```
Expand Down Expand Up @@ -741,17 +741,17 @@ type RemoveBlob = {
cmd: "/space/content/remove/blob"
sub: SpaceDID
args: {
content: Multihash
digest: Multihash
}
}
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

Expand Down

0 comments on commit c04f557

Please sign in to comment.