Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: blob remove should have args digest instead of content #124

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading