Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MetaProtocol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nebula
MetaProtocol
Commits
692c2f42
Commit
692c2f42
authored
Nov 04, 2022
by
vicotor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update p2p and nebula
parent
085af494
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
9 deletions
+33
-9
service.proto
crypterapi/crypter/v1/service.proto
+0
-3
resource.proto
nebulaapi/nebula/v1/resource.proto
+5
-0
service.proto
nebulaapi/nebula/v1/service.proto
+0
-2
service.proto
p2papi/p2p/v1/service.proto
+1
-1
txflow.md
txflow.md
+27
-3
No files found.
crypterapi/crypter/v1/service.proto
View file @
692c2f42
...
...
@@ -5,9 +5,6 @@ package crypter.v1;
import
"crypter/v1/request_response.proto"
;
service
CrypterService
{
// rpc Sign(SignRequest) returns (SignResponse) {}
// rpc Verify(VerifyRequest) returns (VerifyResponse) {}
// rpc Recover(RecoverRequest) returns (RecoverResponse) {}
rpc
BatchSign
(
BatchSignRequest
)
returns
(
BatchSignResponse
)
{}
rpc
BatchVerify
(
BatchVerifyRequest
)
returns
(
BatchVerifyResponse
)
{}
rpc
BatchRecover
(
BatchRecoverRequest
)
returns
(
BatchRecoverResponse
)
{}
...
...
nebulaapi/nebula/v1/resource.proto
View file @
692c2f42
syntax
=
"proto3"
;
package
nebula
.
v1
;
import
"base/v1/resource.proto"
;
message
Tx
{
base.v1.Address
address
=
1
;
base.v1.Hash
hash
=
2
;
}
\ No newline at end of file
nebulaapi/nebula/v1/service.proto
View file @
692c2f42
...
...
@@ -27,8 +27,6 @@ service NebulaService {
// tx operatoration
rpc
GasPrice
(
google.protobuf.Empty
)
returns
(
GasPriceResponse
)
{};
// block info service
rpc
BlockNumber
(
google.protobuf.Empty
)
returns
(
HeightResponse
)
{};
rpc
BlockByHash
(
BlockByHashRequest
)
returns
(
BlockByHashResponse
)
{};
...
...
p2papi/p2p/v1/service.proto
View file @
692c2f42
...
...
@@ -6,5 +6,5 @@ import "p2p/v1/request_response.proto";
service
P2PService
{
rpc
BroadCastMsg
(
BroadCastRequest
)
returns
(
BroadCastResponse
)
{}
rpc
SendData
(
SendDataRequest
)
returns
(
SendDataResponse
)
{}
rpc
SubscribeMsg
(
SubscribeMsgRequest
)
returns
(
SubscribeMsgResponse
)
{}
rpc
SubscribeMsg
(
SubscribeMsgRequest
)
returns
(
stream
SubscribeMsgResponse
)
{}
}
txflow.md
View file @
692c2f42
## SendTx
```
plantuml
@startuml
participant "Ring" as a
actor Alice
participant "Ring" as r
participant "Crypter" as c
a -> c :
participant "TxCheck" as t
participant "Sentry" as s
participant "p2p" as p
participant "nebula" as n
n -> p : SubscribeMessage(rethtx, batchtx)
Alice -> r : SendRawTransaction(ethtx)
r -> c : BatchRecoverTx(ethtx)
c -> r : RethTx
r -> t : BatchCheckTx(rethTx)
t -> r : true
r -> Alice : txhash
r -> r : makeBatchTx
r -> s : LimitInfoRequest
s -> r : LimitInfoResponse
r -> s : CommitBatchTx(batchtx)
r -> p : BroadCastMessage(rethtx, batchtx)
p -> n : Stream(rethtx, batchtx)
n -> n : mineblock(rethtx)
Alice -> r : TransactionReceipt(txhash)
r -> n : TransactionReceipt(txhash)
n -> r : receipt
r -> Alice : receipt
@enduml
```
\ No newline at end of file
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment