- Read the current nonce.
- Build the operation’s canonical payload.
- Sign the exact payload bytes with an authorized Ed25519 key.
- Send the public fields, encoded payload, and signature.
Nonces prevent replay
A nonce is a counter associated with a DID authorization domain. Once a nonce is used successfully, another request cannot safely reuse it. Fetch current values with:Expiration limits stolen requests
valid_until is an unsigned 64-bit Unix timestamp in milliseconds for SCALE authorization payloads. Use a short future window and make sure the machine signing the request has an accurate clock.
Canonical payloads are bytes
For DID-document component operations,canonical_payload is the exact SCALE-encoded authorization structure. Send it as:
- Hex beginning with
0x, or - Standard or URL-safe Base64
Each endpoint page identifies which optional item is populated.
Sign the bytes, not their printed encoding
Ifcanonical_payload is Base64, decode it and sign the decoded bytes. Do not sign the Base64 characters. The resulting Ed25519 signature is sent as Base64 in signature.
Signer selection
Setsigner_key_id to:
rootto use the record’s root public key, or- A complete authorized verification-method ID such as
did:talaria:...#signing
Why the body repeats the DID and action
The path selects the resource. The signed body binds the authorization to the same DID and one exact operation. The Directory rejects a mismatch rather than guessing what the caller intended.Straight to the point
private_key, a mnemonic, or a seed phrase.
