Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

Commit

Permalink
Merge pull request grpc-ecosystem#70 from tronprotocol/Implement_gene…
Browse files Browse the repository at this point in the history
…rate_address_api

add generate address
  • Loading branch information
huzhenyuan committed Jun 26, 2018
2 parents e23480d + ebab597 commit 316ff31
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions api/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,16 @@ service Wallet {
}
};
};
//Warning: do not invoke this interface provided by others.
rpc GenerateAddress (EmptyMessage) returns (AddressPrKeyPairMessage){
option (google.api.http) = {
post: "/wallet/generateaddress"
body: "*"
additional_bindings {
get: "/wallet/generateaddress"
}
};
}
};


Expand Down Expand Up @@ -418,6 +428,16 @@ service WalletSolidity {
}
};
}
//Warning: do not invoke this interface provided by others.
rpc GenerateAddress (EmptyMessage) returns (AddressPrKeyPairMessage){
option (google.api.http) = {
post: "/walletsolidity/generateaddress"
body: "*"
additional_bindings {
get: "/walletsolidity/generateaddress"
}
};
}
};

service WalletExtension {
Expand Down Expand Up @@ -573,4 +593,9 @@ message EasyTransferMessage{
message EasyTransferResponse{
Transaction transaction = 1;
Return result = 2;
}

message AddressPrKeyPairMessage {
string address = 1;
string privateKey = 2;
}

0 comments on commit 316ff31

Please sign in to comment.