UNPKG

@stacks/profile

Version:

Library for Stacks profiles

9 lines (8 loc) 561 B
import { TokenInterface } from 'jsontokens/lib/decode'; export declare function signProfileToken(profile: any, privateKey: string, subject?: any, issuer?: any, signingAlgorithm?: string, issuedAt?: Date, expiresAt?: Date): string; export declare function wrapProfileToken(token: string): { token: string; decodedToken: TokenInterface; }; export declare function verifyProfileToken(token: string, publicKeyOrAddress: string): TokenInterface; export declare function extractProfile(token: string, publicKeyOrAddress?: string | null): Record<string, any>;