mirror of
https://github.com/status-im/ethereumj-personal.git
synced 2025-01-09 11:32:28 +00:00
Hack cpp uncertain ECDSA behaivour:
+ cpp sends v = 0/1 on the RLPx level when java works with v = 27/28 with the current hack full traffic interoperability achieved
This commit is contained in:
parent
552b86507f
commit
8af4556a4f
@ -94,6 +94,10 @@ public class Message {
|
||||
byte[] s = new byte[32];
|
||||
byte v = signature[64];
|
||||
|
||||
// todo: remove this when cpp conclude what they do here
|
||||
if (v == 1) v = 28;
|
||||
if (v == 0) v = 27;
|
||||
|
||||
System.arraycopy(signature, 0, r, 0, 32);
|
||||
System.arraycopy(signature, 32, s, 0, 32);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user