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