-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(client/v2/offchain): sign and verify file (#18626)
Co-authored-by: Marko <marbar3778@yahoo.com> Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
- Loading branch information
1 parent
bda2d11
commit 61c367d
Showing
16 changed files
with
2,035 additions
and
0 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
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,20 @@ | ||
syntax = "proto3"; | ||
|
||
package offchain; | ||
|
||
import "cosmos_proto/cosmos.proto"; | ||
import "cosmos/msg/v1/msg.proto"; | ||
import "amino/amino.proto"; | ||
|
||
// MsgSignArbitraryData defines an arbitrary, general-purpose, off-chain message | ||
message MsgSignArbitraryData { | ||
option (amino.name) = "offchain/MsgSignArbitraryData"; | ||
option (cosmos.msg.v1.signer) = "signer"; | ||
// AppDomain is the application requesting off-chain message signing | ||
string app_domain = 1; | ||
// Signer is the sdk.AccAddress of the message signer | ||
string signer = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; | ||
// Data represents the raw bytes of the content that is signed (text, json, etc) | ||
string data = 3; | ||
} | ||
|
Oops, something went wrong.