Skip to content

Key derivation using sha512 #445

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from Feb 18, 2020
Merged

Key derivation using sha512 #445

merged 9 commits into from Feb 18, 2020

Conversation

rg911
Copy link
Contributor

@rg911 rg911 commented Feb 12, 2020

This PR introduced quite a few Breaking changes:

  • All Key derivation and signing hash are now using SHA512. Means all KeyPairs generated and Addresses derived from publicKey are now having different hex values.
  • Cleared the bond between NetworkType and SigningSchema. SigningSchema has now been removed from the SDK. There's no Keccak / SHA3 switch anymore.
  • Key pair generation is now using nacl.sign.keypair from the standard nacl js script.
  • Transaction signing is now using nacl.sign.detached from the standard nacl js script.
  • Legacy catapult-nacl is still used for SharedKey derivation due to the multiplier methods is internal and not exported in the nacl js.

This PR also:

  • Removed unused legacy catapult-nacl code in Utilities class
  • Fixed the tests
  • Fixed a few lint issues

- Changed key derivation using sha512
- Removed signSchema
- Updated tests
@rg911
Copy link
Contributor Author

rg911 commented Feb 17, 2020

@rg911 rg911 merged commit fd830ca into symbol:master Feb 18, 2020
@fboucquez fboucquez deleted the task/g441_key_derivation_sha512 branch April 13, 2020 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants