Main coves client
1/// Constants used in atProto identity resolution.
2library;
3
4/// Placeholder handle used when handle is invalid or doesn't match DID.
5const String handleInvalid = 'handle.invalid';
6
7/// DID prefix for all decentralized identifiers.
8const String didPrefix = 'did:';
9
10/// DID PLC (Placeholder) prefix.
11const String didPlcPrefix = 'did:plc:';
12
13/// DID Web prefix.
14const String didWebPrefix = 'did:web:';
15
16/// Length of a complete did:plc identifier (including prefix).
17const int didPlcLength = 32;
18
19/// Default PLC directory URL for resolving did:plc identifiers.
20const String defaultPlcDirectoryUrl = 'https://plc.directory/';
21
22/// Maximum length for a DID (per spec).
23const int maxDidLength = 2048;
24
25/// atProto service type in DID documents.
26const String atprotoServiceType = 'AtprotoPersonalDataServer';
27
28/// atProto service ID prefix in DID documents.
29const String atprotoServiceId = '#atproto_pds';