Signing
Graph key IDs, canonical JSON, and edge certificate signatures.
Signing
Graph keys
Graph keys are public P-256 EC JWKs. The SDK rejects private JWKs for graph key IDs and registration helpers.
The ID is:
Canonical JSON
Trust edge signatures use canonical JSON:
- Object keys are sorted.
undefinedobject properties are omitted.- Arrays keep order.
- Values are serialized with
JSON.stringify.
Edge certificate payloads
Only these fields are signed:
The helper strips accidental extra fields such as signature before signing:
Node signatures
The current server verifies Node/OpenSSL DER-encoded ECDSA signatures:
privateKey can be a Node KeyObject, PEM string, or private JWK.
Do not use raw WebCrypto ECDSA output directly against the current server. Web
Crypto returns raw r || s signatures, while the server expects DER. A browser
signing helper should DER-encode the signature before submission.