Skip to content

Commit

Permalink
fix from/into electum bug (openethereum#5686)
Browse files Browse the repository at this point in the history
  • Loading branch information
NikVolf authored and arkpar committed May 24, 2017
1 parent 18c3e90 commit 7499efe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethkey/src/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl Signature {
/// Parse bytes as a signature encoded as RSV (V in "Electrum" notation).
/// May return empty (invalid) signature if given data has invalid length.
pub fn from_electrum(data: &[u8]) -> Self {
if data.len() != 65 || data[0] < 27 {
if data.len() != 65 || data[64] < 27 {
// fallback to empty (invalid) signature
return Signature::default();
}
Expand Down

0 comments on commit 7499efe

Please sign in to comment.