Files
backrest/proto/v1/crypto.proto

24 lines
1019 B
Protocol Buffer

syntax = "proto3";
package v1;
option go_package = "github.com/garethgeorge/backrest/gen/go/v1";
message SignedMessage {
string keyid = 1; // a unique identifier generated as the SHA256 of the public key used to sign the message.
bytes payload = 2; // the payload
bytes signature = 3; // the signature of the payload
int64 timestampMillis = 4; // the timestamp in milliseconds since epoch when the message was signed. Must be within 5 minutes of the current time.
}
message PublicKey {
string keyid = 1 [json_name="keyId"]; // a unique identifier generated as the SHA256 of the public key.
string ed25519pub = 2 [json_name="ed25519pub"]; // raw base64-encoded ed25519 public key.
}
message PrivateKey {
string keyid = 1 [json_name="keyId"]; // a unique identifier generated as the SHA256 of the public key
string ed25519priv = 2 [json_name="ed25519priv"]; // raw base64-encoded ed25519 private key seed.
string ed25519pub = 3 [json_name="ed25519pub"]; // raw base64-encoded ed25519 public key.
}