-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Use raw public key instead of compressed #4234
Use raw public key instead of compressed #4234
Conversation
|
It looks like @fubuloubu signed our Contributor License Agreement. 👍 Many thanks, Parity Technologies CLA Bot |
primitives/core/src/ecdsa.rs
Outdated
| /// NOTE: No checking goes on to ensure this is a real public key. Only use it if | ||
| /// you are certain that the array actually is a pubkey. GIGO! | ||
| pub fn from_full(data: [u8; 65]) -> Self { | ||
| let raw_key = &data[1..]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whitespaces
|
Also, as noted in #4216 (comment) using I could add |
|
So basically, you can have it be any type you want. There's no need for this PR, though since it doesn't really break anything and makes things strictly more compatible I'm ok merging it. But you can in any case make a 20-byte |
|
For now, though, some of the CI is failing and will need to be fixed before it can be merged. |
Ah, well I will have to try a different method of doing what I want. I was using Will fix CI issues. |
|
As noted above, the 120 char line limit is failing because I made a hex string larger. It doesn't seem like I should be splitting it up, so it is probably best to ignore this error? The other two errors do not seem to be my fault, as far as I can tell. Please advise. |
Fixes: #4216