Skip to content

Commit

Permalink
Apply suggestions from webmaster128
Browse files Browse the repository at this point in the history
Co-authored-by: Simon Warta <[email protected]>
  • Loading branch information
JulianToledano and webmaster128 authored Oct 19, 2023
1 parent d75530b commit 06b502c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cips/cip-X.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ created: 2023-10-10
## Simple Summary

This is a convention for signing arbitrary messages. We propose this specification as a method for signing and
validating off-chain arbitrary messages.
verifying off-chain arbitrary messages.

## Abstract

Expand Down Expand Up @@ -66,7 +66,7 @@ offers a more user-friendly sign-in process, replacing non-human-readable random

## Specification

Off-chain signed messages should resemble Cosmos SDK messages but **must not** constitute a valid on-chain transaction.
Off-chain signed messages should resemble Cosmos SDK transactions but **must not** constitute a valid on-chain transaction.
`chain-id`, `account_number`, and `sequence` must all be assigned invalid values.

An off-chain transaction follows these rules:
Expand All @@ -80,7 +80,7 @@ An off-chain transaction follows these rules:
Verification of an off-chain transaction follows the same rules as an on-chain one, except for the specification
differences highlighted above.

As messages in cosmos are defined as proto definitions, different messages can be defined for different off-chain
As messages in Cosmos are defined as proto definitions, different messages can be defined for different off-chain
use cases, such as Sign-In, proof of wallet ownership or the ability to sign arbitrary data.

All off-chain messages will be of the type `offchain/messageKind`.
Expand Down Expand Up @@ -159,7 +159,7 @@ used to prevent replay attacks. `Issued-at` the time when the message was genera
Proto definition:

```protobuf
// MsgSignArbitraryData defines an arbitrary, general-purpose, off-chain message
// MsgSignIn defines an arbitrary, general-purpose, off-chain message
message MsgSignIn {
option (cosmos.msg.v1.signer) = "signerAddress";
// AppDomain is the application requesting off-chain message signing
Expand All @@ -175,7 +175,7 @@ message MsgSignIn {
}
```

Signed MsgSignIn json example:
Signed MsgSignIn JSON example:

```json
{
Expand Down

0 comments on commit 06b502c

Please sign in to comment.