-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
09787ea
commit 6441441
Showing
26 changed files
with
4,546 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
295 changes: 295 additions & 0 deletions
295
agglayer/proto/node/agglayer_certificate_submission_service.pb.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
34 changes: 34 additions & 0 deletions
34
agglayer/proto/node/agglayer_certificate_submission_service.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Proto definition for Agglayer Certificate Submition Service | ||
|
||
syntax = "proto3"; | ||
|
||
package proto; | ||
option go_package = "github.com/agglayer/aggkit/agglayer/proto/node;node"; | ||
import "types/certificate.proto"; | ||
|
||
// Service for submitting certificate to an agglayer node. | ||
service AgglayerCertificateSubmissionService { | ||
// Method used to submit a certificate. | ||
rpc SubmitCertificate(SubmitCertificateRequest) | ||
returns (SubmitCertificateResponse); | ||
} | ||
|
||
// Type used to submit a certificate. | ||
message SubmitCertificateRequest { | ||
// The certificate to submit. | ||
types.Certificate certificate = 1; | ||
} | ||
|
||
// Type used as response to a certificate submission. | ||
message SubmitCertificateResponse { | ||
// The certificate id of the submitted certificate. | ||
types.CertificateId certificate_id = 1; | ||
} | ||
|
||
// The kind of error that occurred and that are reported by the service. | ||
enum ErrorKind { | ||
// Unspecified error. | ||
ERROR_KIND_UNSPECIFIED = 0; | ||
// The signature verification failed. | ||
ERROR_KIND_SIGNATURE_VERIFICATION = 1; | ||
} |
Oops, something went wrong.