oken-waas
Version:
Oken Wallet as a Service SDK
19 lines (18 loc) • 503 B
TypeScript
export type Message = {
[key: string]: unknown;
signerType?: 'VAULT' | 'SMART_ACCOUNT';
from?: string;
};
export type SignedMessage = Message & {
timestamp: string;
signature: string;
};
export type SignerOptions = {
signerType: 'VAULT' | 'SMART_ACCOUNT';
from: string;
};
declare const _default: (okenClientId: string, privateKey: string, options?: SignerOptions) => {
signJWT: () => string;
signMsg: (payload: Message) => SignedMessage;
};
export default _default;