oc · docs
documentation

@orangecheck/bip322


@orangecheck/bip322 / verifySignature

Function: verifySignature()

function verifySignature(
   address: string, 
   message: string, 
   signatureBase64: string): boolean;

Defined in: index.ts:319

Whether signatureBase64 signs message for address: a BIP-322 simple signature from a P2WPKH, P2SH-P2WPKH or single-key P2TR address, or a legacy BIP-137 signature (always, for a P2PKH address). Never throws; anything malformed is simply not a valid signature.

Parameters

ParameterType
addressstring
messagestring
signatureBase64string

Returns

boolean