Class ServerKeys
The server's Ed25519 signing key, which signs every event it creates; stored in signing.key in the data directory, readable only by the user.
Inherited Members
Namespace: Uniform.Matrix.Server.Keys
Assembly: Uniform.Matrix.Server.dll
Syntax
public sealed class ServerKeys
Remarks
The file has one line, ed25519 <version> <seed>, the same format Synapse uses.
Constructors
| Edit this page View SourceServerKeys(IOptions<ServerStorageOptions>, IHostEnvironment)
Load the key, creating one on first start.
Declaration
public ServerKeys(IOptions<ServerStorageOptions> storage, IHostEnvironment environment)
Parameters
| Type | Name | Description |
|---|---|---|
| IOptions<ServerStorageOptions> | storage | |
| IHostEnvironment | environment |
Properties
| Edit this page View SourceKeyId
Key ID, e.g. ed25519:a_AbCd.
Declaration
public string KeyId { get; }
Property Value
| Type | Description |
|---|---|
| string |
PublicKey
Public key, unpadded base64.
Declaration
public string PublicKey { get; }
Property Value
| Type | Description |
|---|---|
| string |