Public Key
Retrieve Treeship’s public signing key for independent verification.Endpoint
Authentication
Not required. This is a public endpoint.Response
Status: 200 OKResponse Fields
| Field | Type | Description |
|---|---|---|
key_id | string | Short identifier for this key |
algorithm | string | Always “Ed25519” |
public_key_pem | string | PEM-encoded public key |
usage | string | Instructions for use |
Example
Using the Key
Save to File
Verify a Signature
Key Rotation
If the key is rotated, thekey_id will change. Old attestations remain verifiable if you have the old public key. We recommend:
- Caching the public key locally
- Storing historical public keys
- Checking
key_idmatches when verifying