Function winternitz::verify
source · Expand description
Verify a signature sig
of message msg
from public key pubkey
.
Arguments
pubkey
is a public key of lengthPARAMETER_N
msg
is the message to be verified. It may be of any length.sig
is the signature. It must be of lengthPARAMETER_P * PARAMETER_N
.
Returns
This function returns Ok(true)
if the signature is valid, Ok(false)
if it is not, or
an Err
if pubkey
or sig
are of incorrect length.