oc · docs
docs / documentation

@orangecheck/wallet-adapter


@orangecheck/wallet-adapter / assertSignedBy

Function: assertSignedBy()

function assertSignedBy(args: {
  address: string;
  message: string;
  signature: string;
}): Promise<void>;

Defined in: wallet-adapter/src/sign.ts:60

Throw WrongAccountError unless signature is a valid BIP-322 (or legacy) signature of message by address. Every signer runs this before returning.

Parameters

ParameterType
args&#123; address: string; message: string; signature: string; &#125;
args.addressstring
args.messagestring
args.signaturestring

Returns

Promise&lt;void>