-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to print Der value from signature #27
Comments
Hello @smartkodian, You can use I wish they can support P1363 format! short signature like Bouncy Castle SHA256WithPlain-ECDSA But I try to do manually. It worked for sign, But can't verified! because library only verify ASN1 DER. I don't know how to apply it. Am sad my friend no community to support us, we can cry together.... 😭
|
Hello @softwarekamal yes bro, Actually I faced the issue with 64 byte issue in starkbank library but now I am testing on PHP and I am using openssl_sign beside checking the 32 byte for R and S value but I have problem with ECDSA signature format. Can we contact? |
Welcome back @smartkodian, Ccrrent library ecdsa-dotnet need more extension methods to make it beautiful like: I will share you my bouncy castle ECDSA class that give fixed 64 bytes length:
Usage:
If you need to talk more privately, |
Hi,
I am using this command to show Der value but doesn't work with me, Any help please?
PrivateKey privateKey = PrivateKey.fromPem(privateKeyPem);
Signature signatures = Ecdsa.sign(message, privateKey);
byte[] der = signatures.toDer();
Console.WriteLine(der);
The text was updated successfully, but these errors were encountered: