python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How to extract the text private and public key from ECDsa or ECDsaCng object?
When creating an ECDSA object, and trying to extract the private and public key objects it returns a byte[]. But when trying to convert it to a string, the output it gives doesn't look right.
// Creat...
Hashan Siriwardena
Votes: 0
Answers: 1
using _hashTypedDataV4 in smart contract and _signTypedData(etherjs) in frontend is not working
i am trying to encode the nft data using _signTypedData(etherjs) in frontend as follows
const domain = {
name: "og-nft",
version: "1",
};
const types = {
Nft: [
...
Adarsh Raj
Votes: 0
Answers: 1
python ecdsa V,R,S example
In python, I know how to create a signature for a transaction using fastecdsa.
signature = ecdsa.sign(encoded_transaction, private_key, curve.secp256k1, ecdsa.sha256)
The code above gives me R (x) an...
jennie788
Votes: 0
Answers: 0
JAVA How to verify ECDSA signature when r or s are negative
I'm writing a chunk of code to check the signature
My code below works if r and s are positive
if not the verify fails.
My code is
PublicKey publicKey = cert.getPublicKey();
Signature ecdsaVerify = Si...
Ariakan
Votes: 0
Answers: 1