forked from hyperledger-cacti/cacti
-
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.
feat(satp-hermes): add protobuf gateway refactor
Authored by: Carlos Amaro <carlosrscamaro@tecnico.ulisboa.pt> Signed-off-by: Rafael Belchior <rafael.belchior@tecnico.ulisboa.pt> feat(satp-hermes): satp proto update (hyperledger-cacti#3147) * feat(satp-hermes): update protos Signed-off-by: Carlos Amaro <carlosrscamaro@tecnico.ulisboa.pt> * feat(satp-hermes): protos Signed-off-by: Carlos Amaro <carlosrscamaro@tecnico.ulisboa.pt> * feat(satp-hermes): protos Signed-off-by: Carlos Amaro <carlosrscamaro@tecnico.ulisboa.pt> --------- Signed-off-by: Carlos Amaro <carlosrscamaro@tecnico.ulisboa.pt> feat(satp-hermes): update protos Signed-off-by: Carlos Amaro <carlosrscamaro@tecnico.ulisboa.pt> feat(satp-hermes): core stage services message names update Signed-off-by: Carlos Amaro <carlosrscamaro@tecnico.ulisboa.pt> feat(satp-hermes): gRPC server start implementation and gateway_refactor in handlers Signed-off-by: Carlos Amaro <carlosrscamaro@tecnico.ulisboa.pt> fix(satp-hermes): satp proto update also updates yarn lock Signed-off-by: Rafael Belchior <rafael.belchior@tecnico.ulisboa.pt> fix(satp-hermes): update yarn, comment method fix(satp-hermes): update yarn ci(satp-hermes): fix bungee and satp ci Signed-off-by: Rafael Belchior <rafael.belchior@tecnico.ulisboa.pt>
- Loading branch information
1 parent
31f1867
commit 5a39899
Showing
48 changed files
with
7,681 additions
and
360 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
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
22 changes: 0 additions & 22 deletions
22
packages/cactus-plugin-satp-hermes/src/main/proto/cacti/satp/v02/common/message.proto
This file was deleted.
Oops, something went wrong.
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
42 changes: 16 additions & 26 deletions
42
packages/cactus-plugin-satp-hermes/src/main/proto/cacti/satp/v02/stage_0.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 |
---|---|---|
@@ -1,34 +1,24 @@ | ||
|
||
syntax = "proto3"; | ||
package cacti.satp.v02.stage_0; | ||
package cacti.satp.v02; | ||
|
||
import "google/protobuf/empty.proto"; | ||
import "cacti/satp/v02/common/message.proto"; | ||
|
||
service SATPStage0 { | ||
// util RPCs | ||
|
||
// step RPCs | ||
rpc TransferProposalClaims(TransferProposalClaimsRequest) returns (TransferProposalClaimsResponse) {}; | ||
// todo other rpcs | ||
} | ||
|
||
message TransferProposalClaimsRequest { | ||
string message_type = 1; | ||
string asset_asset_id = 2; | ||
string asset_profile_id = 3; | ||
string verified_originator_entity_id = 4; | ||
string verified_beneficiary_entity_id = 5; | ||
string originator_pubkey = 6; | ||
string beneficiary_pubkey = 7; | ||
string sender_gateway_network_id = 8; | ||
string recipient_gateway_network_id = 9; | ||
string client_identity_pubkey = 10; | ||
string server_identity_pubkey = 11; | ||
string sender_gateway_owner_id = 12; | ||
string receiver_gateway_owner_id = 13; | ||
message PreTransferVerificationAndContextEstablishmentRequest { | ||
cacti.satp.v02.common.CommonSatp context = 1; | ||
cacti.satp.v02.common.TransferClaims transferClaims = 2; | ||
// todo other fields | ||
} | ||
|
||
// TODO | ||
message TransferProposalClaimsResponse { | ||
string message_type = 1; | ||
message PreTransferVerificationAndContextEstablishmentResponse { | ||
|
||
} | ||
|
||
service SatpStage0Service { | ||
// util RPCs | ||
|
||
// step RPCs | ||
rpc TransferProposalClaims(PreTransferVerificationAndContextEstablishmentRequest) returns (PreTransferVerificationAndContextEstablishmentResponse) {}; | ||
// todo other rpcs | ||
} |
35 changes: 29 additions & 6 deletions
35
packages/cactus-plugin-satp-hermes/src/main/proto/cacti/satp/v02/stage_1.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 |
---|---|---|
@@ -1,13 +1,36 @@ | ||
|
||
syntax = "proto3"; | ||
package cacti.satp.v02.stage_1; | ||
package cacti.satp.v02; | ||
|
||
import "google/protobuf/empty.proto"; | ||
import "cacti/satp/v02/common/message.proto"; | ||
|
||
|
||
service SATPStage1 { | ||
// util RPCs | ||
message TransferProposalRequestMessage { | ||
cacti.satp.v02.common.CommonSatp common = 1; | ||
cacti.satp.v02.common.TransferClaims transfer_init_claims = 2; | ||
cacti.satp.v02.common.TransferClaimsFormat transfer_init_claims_format = 3; | ||
cacti.satp.v02.common.NetworkCapabilities network_capabilities = 4; | ||
bool multiple_claims_allowed = 5; | ||
bool multiple_cancels_allowed = 6; | ||
} | ||
|
||
// step RPCs | ||
message TransferProposalReceiptRejectMessage { | ||
cacti.satp.v02.common.CommonSatp common = 1; | ||
string hash_transfer_init_claims = 2; | ||
cacti.satp.v02.common.TransferClaims transfer_counter_claims = 3; | ||
string timestamp = 4; | ||
} | ||
|
||
message TransferCommenceRequestMessage { | ||
cacti.satp.v02.common.CommonSatp common = 1; | ||
string hash_transfer_init_claims = 2; | ||
string client_transfer_number = 3; | ||
} | ||
|
||
message TransferCommenceResponseMessage { | ||
cacti.satp.v02.common.CommonSatp common = 1; | ||
} | ||
|
||
service SatpStage1Service { | ||
rpc TransferProposal(TransferProposalRequestMessage) returns (TransferProposalReceiptRejectMessage) {} | ||
rpc TransferCommence(TransferCommenceRequestMessage) returns (TransferCommenceResponseMessage) {} | ||
} |
25 changes: 19 additions & 6 deletions
25
packages/cactus-plugin-satp-hermes/src/main/proto/cacti/satp/v02/stage_2.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 |
---|---|---|
@@ -1,13 +1,26 @@ | ||
|
||
syntax = "proto3"; | ||
package cacti.satp.v02.stage_2; | ||
package cacti.satp.v02; | ||
|
||
import "cacti/satp/v02/common/message.proto"; | ||
|
||
import "google/protobuf/empty.proto"; | ||
|
||
|
||
service SATPStage2 { | ||
// util RPCs | ||
|
||
// step RPCs | ||
message LockAssertionRequestMessage { | ||
cacti.satp.v02.common.CommonSatp common = 1; | ||
cacti.satp.v02.common.LockAssertionClaim lock_assertion_claim = 2; | ||
cacti.satp.v02.common.LockAssertionFormat lock_assertion_format = 3; | ||
string lock_assertion_expiration = 4; | ||
string client_transfer_number = 5; | ||
string client_signature = 6; | ||
} | ||
|
||
message LockAssertionReceiptMessage { | ||
cacti.satp.v02.common.CommonSatp common = 1; | ||
string server_transfer_number = 2; | ||
string server_signature = 3; | ||
} | ||
|
||
service SatpStage2Service { | ||
rpc LockAssertion(LockAssertionRequestMessage) returns (LockAssertionReceiptMessage) {} | ||
} |
Oops, something went wrong.