MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / VerifyDownload

Method VerifyDownload

internal/httpapi/attachments.go:44–44  ·  view source on GitHub ↗

VerifyDownload reports whether `token` authorizes downloading attachment `index` of `messageID` (and is unexpired). Identity is NOT in the token; the download handler additionally binds the message to the path agent.

(token, messageID string, index int)

Source from the content-addressed store, hash-verified

42 // `index` of `messageID` (and is unexpired). Identity is NOT in the token;
43 // the download handler additionally binds the message to the path agent.
44 VerifyDownload(token, messageID string, index int) bool
45}
46
47// nativeAttachmentStore mints capability tokens with the deployment HMAC secret

Implementers 1

nativeAttachmentStoreinternal/httpapi/attachments.go

Calls

no outgoing calls