Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Optimizing `crypto/ed25519.go` 1. Avoid unnecessary copying of byte arrays. it is not necessary to make a copy of the byte array in these cases since the byte arrays are the same size and have the same underlying structure. 2. Use of constants instead of literals `const CompressedPublicKeySize = 33` instead `if len(paddr) != 33` * Cleaning up after comments - Moved constant definition top - Using `PublicKeyLen` instead of `32` * Reverting back the changes - Simplifying the function isn't possible, I thought it was but checking it on a text editor, I realized is not possible. * Added new constant, and fixing naming convention * Updating `PrivateKeySeedSize` to `...Len` - Updating naming convention - Fixing wrong variable naming (`PrivateKeyLen` (64) to `PublicKeyLen` (32)) * Using `Len` instead of `Size` Consistency * Adding `PrivateKeySeedLen`
- Loading branch information