eosplayer
Version:
eosplayer is the glue layer of eosjs, which is packaged based on eosjs and provides better usability for the application layer. It can be used on browsers already installed scatter or in Dapp wallets.
24 lines (23 loc) • 762 B
TypeScript
import ChainHelper from '../../helpers/chain';
import { ISignPlugin, ValidateDelegate } from '../interface';
/**
* Mykey plugins help to sign and validate signature
*/
export declare class MykeyPlugin implements ISignPlugin {
private readonly config;
/**
* initiate with the chain helper
* @param {Object.<string,string>} config - default: {mgrcontract: 'mykeymanager'}
*/
constructor(config?: {
mgrcontract: string;
});
getSignKey(account: string, chain: ChainHelper): Promise<string>;
readonly perm: string;
readonly signKeyProvider: {
[x: string]: (account: string, chain: ChainHelper) => Promise<string>;
};
readonly validatorProvider: {
[perm: string]: ValidateDelegate;
};
}