Signature.validate
Validates a Signature. Returns true if the signature is valid, false otherwise.
Imports
Named
import { Signature } from 'ox'Examples
import { Signature } from 'ox'
 
const valid = Signature.validate({
  r: -49782753348462494199823712700004552394425719014458918871452329774910450607807n,
  s: 33726695977844476214676913201140481102225469284307016937915595756355928419768n,
  yParity: 1,
})
falseDefinition
function validate(
  signature: ExactPartial<Signature>,
  options?: validate.Options,
): booleanSource: src/core/Signature.ts
Parameters
signature
- Type: 
ExactPartial<Signature> 
The signature object to assert.
options
- Type: 
validate.Options - Optional
 
options.recovered
- Type: 
boolean - Optional
 
Whether or not the signature should be recovered (contain yParity).
Return Type
boolean

