refactor: 🚚 Add algorithm, rename fields in public keys

This commit is contained in:
Jesse Wierzbinski 2024-08-17 14:58:41 +02:00
parent f62c2b3a19
commit 290b6f96e9
No known key found for this signature in database
3 changed files with 16 additions and 7 deletions

View file

@ -73,12 +73,15 @@ Instance **must** be the host of the instance the user is on (hostname with opti
<Property name="public_key" type="PublicKey" required={true}>
The user's public key. Must follow the [Versia Public Key](/signatures) format. `actor` may be a URI to another user's profile, in which case this key may allow the user to act on behalf of the other user (see [delegation](/delegation)).
`algorithm` must be `ed25519` for now.
```typescript
type URI = string;
type PublicKey = {
actor: URI;
public_key: string;
algorithm: string;
key: string;
}
```
</Property>
@ -181,7 +184,8 @@ Instance **must** be the host of the instance the user is on (hostname with opti
"manually_approves_followers": false,
"public_key": {
"actor": "https://versia.social/users/018ec082-0ae1-761c-b2c5-22275a611771",
"public_key": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
"algorithm": "ed25519",
"key": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
},
"username": "aprl"
}