crypto.ecc_verify

crypto

ecc_verify(pub_key, msg, sig) -> ok, err

Verify an ECC P-256 signature

Counterpart to ecc_sign. pub_key is the raw uncompressed public point, 65 bytes, and sig is the 64-byte r||s signature. Returns true where the signature is the key's over the message, and false where it is not.

Returns nil and a reason for an argument of the wrong type or length: a key that is not 65 bytes, a signature that is not 64, a message that is no string.