-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #331 from pshenmic/feat/decodes-fix
Public Keys Structure Improvments
- Loading branch information
Showing
7 changed files
with
274 additions
and
171 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
const KeyPurposeEnum = { | ||
0: 'AUTHENTICATION', | ||
1: 'ENCRYPTION', | ||
2: 'DECRYPTION', | ||
3: 'TRANSFER', | ||
4: 'SYSTEM', | ||
5: 'VOTING', | ||
6: 'OWNER' | ||
} | ||
|
||
module.exports = KeyPurposeEnum |
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,9 @@ | ||
const KeyTypeEnum = { | ||
0: 'ECDSA_SECP256K1', | ||
1: 'BLS12_381', | ||
2: 'ECDSA_HASH160', | ||
3: 'BIP13_SCRIPT_HASH', | ||
4: 'EDDSA_25519_HASH160' | ||
} | ||
|
||
module.exports = KeyTypeEnum |
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,8 @@ | ||
const SecurityLevelEnum = { | ||
0: 'MASTER', | ||
1: 'CRITICAL', | ||
2: 'HIGH', | ||
3: 'MEDIUM' | ||
} | ||
|
||
module.exports = SecurityLevelEnum |
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
Oops, something went wrong.