UNPKG

@didtools/pkh-tezos

Version:

Implements support to authenticate, authorize and verify with Tezos accounts as a did:pkh with SIWE(X) and CACAO. Primarly used with `did-session` and `@didtools/cacao`.

6 lines (5 loc) 382 B
import { Cacao, VerifyOptions, Verifiers } from '@didtools/cacao'; export declare function getTezosVerifier(): Verifiers; export declare function getPkhfromPk(publicKey: string): string; export declare function verifySignature(payload: string, publicKey: string, signature: string): boolean; export declare function verifyTezosSignature(cacao: Cacao, options: VerifyOptions): void;