verifiablecredentials-crypto-sdk-typescript-protocols-common
Version:
Package with common classes for crypto protocols.
19 lines (18 loc) • 385 B
TypeScript
import { TSMap } from "typescript-map";
/**
* Genereric type to model crypto tokens
*/
export interface ICryptoToken extends TSMap<string, any> {
/**
* get the format of the crypto token
*/
tokenFormat(): string;
/**
* Serialize a a @interface ICryptoToken
*/
serialize(): string;
/**
* Convert token to json
*/
toJson(): any;
}