Adds DeclareCommittee and ContributePassphrase variants to bootstrap.proto, ContributePassphrase to unseal.proto, and AwaitingContributions result codes to both. Implements corresponding inbound converters and outbound reply mappings. VaultGate handlers delegate to VaultCoordinator.
38 lines
735 B
Protocol Buffer
38 lines
735 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package arbiter.operator.vault.bootstrap;
|
|
|
|
message BootstrapEncryptedKey {
|
|
bytes nonce = 1;
|
|
bytes ciphertext = 2;
|
|
bytes associated_data = 3;
|
|
}
|
|
|
|
message DeclareCommittee {
|
|
uint32 count = 1;
|
|
}
|
|
|
|
message ContributePassphrase {
|
|
bytes passphrase = 1;
|
|
}
|
|
|
|
enum BootstrapResult {
|
|
BOOTSTRAP_RESULT_UNSPECIFIED = 0;
|
|
BOOTSTRAP_RESULT_SUCCESS = 1;
|
|
BOOTSTRAP_RESULT_ALREADY_BOOTSTRAPPED = 2;
|
|
BOOTSTRAP_RESULT_INVALID_KEY = 3;
|
|
BOOTSTRAP_RESULT_AWAITING_CONTRIBUTIONS = 4;
|
|
}
|
|
|
|
message Request {
|
|
oneof payload {
|
|
BootstrapEncryptedKey encrypted_key = 2;
|
|
DeclareCommittee declare_committee = 3;
|
|
ContributePassphrase contribute_passphrase = 4;
|
|
}
|
|
}
|
|
|
|
message Response {
|
|
BootstrapResult result = 1;
|
|
}
|