@aptos-labs/siwa
Version:
Library of utilities for Sign in with Aptos
27 lines • 913 B
TypeScript
import { type Aptos, type HexInput, type PublicKey, type Signature } from "@aptos-labs/ts-sdk";
/**
* Helper function to convert a message to sign or to verify to a valid message input
*
* @param message a message as a string or Uint8Array
*
* @returns a valid HexInput - string or Uint8Array
* @group Implementation
* @category Serialization
*/
export declare const convertSigningMessage: (message: HexInput) => HexInput;
/**
* Verifies a signature using the Sign in with Aptos signing algorithm.
*
* @param output The AptosSignInOutput to verify the signature against.
* @param options The options to use for the verification.
*
* @returns The verification result.
*/
export declare function verifySignature(params: {
publicKey: PublicKey;
signature: Signature;
signingMessage: HexInput;
}, options?: {
aptos?: Aptos;
}): Promise<boolean>;
//# sourceMappingURL=signatures.d.ts.map