You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEOC76WxZ/TMzJnRqv/cy9llDqSIMW
lplgREY3jMxDCksPGDDyepeg7fFdCu56N9Br9n5oWmj/iKULrglQehGiiA==
-----END PUBLIC KEY-----
I'd like to compare with your library, but I do not find how to create the Point/Signature from the PEM :
const digest = crypto.createHash('sha256').update(Buffer.from('Hello world')).digest();
const publicKey = secp.Point.fromPem(fs.readFileSync('key.pem')); //How to do here ?
const signature = Buffer.from(
'bxw1nS8Q39mnQVkAhvJctXuLHz4n0wUjLbE+phj1XlUeWDxl7DCK5bG4d7YrL7zGtAnUq3YT9AdrrAXjpwhCzQ==',
'base64',
);
const isSigned = secp.verify(signature, digest, publicKey);
assert(isSigned)
I also have x/y in JWK (so base64) in case it is easier than PEM :
I have the following python program
pem file is :
I'd like to compare with your library, but I do not find how to create the Point/Signature from the PEM :
I also have x/y in JWK (so base64) in case it is easier than PEM :
The text was updated successfully, but these errors were encountered: