-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Return unparsed msg and public key in base64 format 2. Return correct public key
- Loading branch information
Showing
6 changed files
with
102 additions
and
20 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
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,25 @@ | ||
export enum SignMode { | ||
// SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be | ||
// rejected | ||
SIGN_MODE_UNSPECIFIED = 0, | ||
|
||
// SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is | ||
// verified with raw bytes from Tx | ||
SIGN_MODE_DIRECT = 1, | ||
|
||
// SIGN_MODE_TEXTUAL is a future signing mode that will verify some | ||
// human-readable textual representation on top of the binary representation | ||
// from SIGN_MODE_DIRECT | ||
SIGN_MODE_TEXTUAL = 2, | ||
|
||
// SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses | ||
// Amino JSON and will be removed in the future | ||
SIGN_MODE_LEGACY_AMINO_JSON = 127 | ||
} | ||
|
||
export const SIGN_MODES = { | ||
[SignMode.SIGN_MODE_UNSPECIFIED]: 'SIGN_MODE_UNSPECIFIED', | ||
[SignMode.SIGN_MODE_DIRECT]: 'SIGN_MODE_DIRECT', | ||
[SignMode.SIGN_MODE_TEXTUAL]: 'SIGN_MODE_TEXTUAL', | ||
[SignMode.SIGN_MODE_LEGACY_AMINO_JSON]: 'SIGN_MODE_LEGACY_AMINO_JSON' | ||
} |
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