mirror of
https://github.com/versia-pub/docs.git
synced 2026-03-13 10:59:16 +01:00
refactor: 🚚 Add algorithm, rename fields in public keys
This commit is contained in:
parent
f62c2b3a19
commit
290b6f96e9
3 changed files with 16 additions and 7 deletions
|
|
@ -70,11 +70,13 @@ On all entities that have an `author` field, the `author` can be `null` to repre
|
|||
|
||||
```typescript
|
||||
type PublicKey = {
|
||||
public_key: string;
|
||||
algorithm: string;
|
||||
key: string;
|
||||
}
|
||||
```
|
||||
|
||||
- `public_key`: Public key of the instance. Must follow the [Versia Public Key](/signatures) format.
|
||||
|
||||
- `algorithm`: Algorithm used for the public key. Can only be `ed25519` for now.
|
||||
- `key`: Public key of the instance. Must follow the [Versia Public Key](/signatures) format.
|
||||
</Property>
|
||||
<Property name="moderators" type="URI" required={false}>
|
||||
URI to [Collection](/structures/collection) of instance moderators.
|
||||
|
|
@ -134,7 +136,8 @@ On all entities that have an `author` field, the `author` can be `null` to repre
|
|||
}
|
||||
},
|
||||
"public_key": {
|
||||
"public_key": "MCowBQYDK2VwAyEA9zhEMtQZetRl4QrLcz99i7jOa6ZVjX7aLfRUsMuKByI="
|
||||
"algorithm": "ed25519",
|
||||
"key": "MCowBQYDK2VwAyEA9zhEMtQZetRl4QrLcz99i7jOa6ZVjX7aLfRUsMuKByI="
|
||||
},
|
||||
"banner": null,
|
||||
"extensions": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue