Skip to content
On this page

Function: signedBindingText()

TypeScript
function signedBindingText(
   statement: string, 
   address: string, 
   signature: string, 
opts: VerifyDeviceRecordsOptions): Promise<string | null>;

Defined in: verify.ts:43 (opens in a new tab)

The text signature covers for address: the one of bindingSigTexts(statement) it verifies over, or null for neither. A publisher writes this text as event.content (OC Lock SPEC §3.3). A verifier that throws counts as no.

ParametersLink to this section

ParameterType
statementstring
addressstring
signaturestring
optsVerifyDeviceRecordsOptions

ReturnsLink to this section

Promise<string | null>