ANProto over ATProto -- using Bluesky PDSes to store ANProto messages and blobs
1{
2 "lexicon": 1,
3 "id": "com.anproto.message.v1",
4 "defs": {
5 "main": {
6 "type": "record",
7 "description": "ANProto message stored on a PDS; rkey = base64url(anhash).",
8 "key": "anhash-b64url",
9 "record": {
10 "type": "object",
11 "required": ["anmsg", "anhash"],
12 "properties": {
13 "anmsg": {
14 "type": "string",
15 "description": "Full ANProto message/signature string.",
16 "maxLength": 20000
17 },
18 "anhash": {
19 "type": "string",
20 "description": "ANProto hash (base64). rkey uses base64url (+->-, /->_, trim =).",
21 "maxLength": 256
22 },
23 "anblob": {
24 "type": "string",
25 "description": "Optional attached blob payload, base64-encoded (inline).",
26 "maxLength": 9000000
27 },
28 "blobhash": {
29 "type": "string",
30 "description": "Hash of the attached blob (base64).",
31 "maxLength": 256
32 }
33 }
34 }
35 }
36 }
37}