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

Function attachmentTokenPayload

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

attachmentTokenPayload is the signed, opaque-to-the-client capability payload.

(messageID string, index int, expUnix int64)

Source from the content-addressed store, hash-verified

61
62// attachmentTokenPayload is the signed, opaque-to-the-client capability payload.
63func attachmentTokenPayload(messageID string, index int, expUnix int64) string {
64 return fmt.Sprintf("%s|%d|%d", messageID, index, expUnix)
65}
66
67func (n *nativeAttachmentStore) sign(messageID string, index int, expUnix int64) string {
68 payload := attachmentTokenPayload(messageID, index, expUnix)

Callers 1

signMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected