aladinnetwork-blockstack
Version:
The Aladin Javascript library for authentication, identity, and storage.
19 lines (18 loc) • 525 B
TypeScript
/**
* Represents a user profile
*
*/
export declare class Profile {
_profile: {
[key: string]: any;
};
constructor(profile?: {});
toJSON(): {
[key: string]: any;
};
toToken(privateKey: string): any;
static validateSchema(profile: any, strict?: boolean): any;
static fromToken(token: string, publicKeyOrAddress?: string | null): Profile;
static makeZoneFile(domainName: string, tokenFileURL: string): any;
static validateProofs(domainName: string): Promise<any[]>;
}