Closed binny1024 closed 1 year ago
Do you find the solution? I'm facing the same issue :disappointed: (java.lang.IllegalArgumentException: Invalid point coordinates)
EDIT: was in my case a mismatch between public key (as announced in static-nodes file) and the private key stored by the node itself.
I'm seeing the same issue, but my private/public keys are correct
@macfarla - any ideas here?
@pinges can you take a look at this one / suggest some troubleshooting steps?
seeing this issue as well. how would i verify if my private/public keys are correct?
I have written a quick shell script that allows you to generate the public key for a given private key for the secp256k1 curve. The format of the private key is the same as needed by besu: a file containing the hex string (leading 0x or not) that is 32 bytes (64 characters) long. You need to have openssl in the PATH. The output has the following format:
Private-Key: (256 bit)
priv:
00:90:bc:42:59:e1:0c:21:5e:e7:81:a6:74:c1:72:
8b:40:fd:8f:37:3a:54:22:f5:9d:0f:30:e6:98:e3:
b9:9a:a7
pub:
04:35:48:c8:7b:99:20:ff:16:aa:4b:dc:f0:1c:85:
f2:51:17:a2:9a:e1:57:4d:75:9b:ad:48:cc:94:63:
d8:e9:f7:c3:c1:d1:e9:fb:0d:28:e7:38:98:95:1f:
90:e0:27:14:ab:b7:70:fd:6d:22:e9:03:71:88:2a:
45:65:88:00:e9
ASN1 OID: secp256k1
where
The public key printed should be the same that you have passed into Besu, minus the leading "04".
Here is the script:
#!/bin/sh
temp_file1=$(mktemp)
cat "$1" | tr -d '\n' | tail -c 64 > temp_file1
temp_file2=$(mktemp)
xxd -r -p -c 32 temp_file1 temp_file2
(printf '\x30\x3e\x02\x01\x00\x30\x10\x06\x07\x2a\x86\x48\xce\x3d\x02\x01\x06\x05\x2b\x81\x04\x00\x0a\x04\x27\x30\x25\x02\x01\x01\x04\x20'; cat temp_file2;) > temp_file1
openssl pkey -inform der -in temp_file1 -noout -text
rm temp_file1 temp_file2
@binny1024 Looking at your stacktrace I can see that the public key that Besu is complaining about is from a message sent by another node. What kind of network are you running? Is that other node a Besu node as well? These keys are ephemeral keys and they are generated for a message. They have nothing to do with your node key.
Description
As an [Actor], I want [feature] so that [why].
Acceptance Criteria
Steps to Reproduce (Bug)
Expected behavior: [What you expect to happen] sync block Actual behavior: [What actually happens]
Frequency: [What percentage of the time does it occur?] always
Versions (Add all that apply)
besu --version
] besu/v22.10.0/linux-x86_64/oracle-java-19java -version
] besu/v22.10.0/linux-x86_64/oracle-java-19cat /etc/*release
]uname -a
]Linux company-portal 5.4.0-125-generic #141-Ubuntu SMP Wed Aug 10 13:42:03 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
vmware -v
]docker version
]Smart contract information (If you're reporting an issue arising from deploying or calling a smart contract, please supply related information)
solc --version
]Additional Information (Add any of the following or anything else that may be relevant)
Besu setup info - genesis file, config options
System info - memory, CPU