PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@celo/connect/lib
Просмотр файла: wallet.d.ts
/// <reference types="node" />
import { EIP712TypedData } from '@celo/utils/lib/sign-typed-data-utils';
import { Address, CeloTx, EncodedTransaction, RLPEncodedTx } from './types';
export interface ReadOnlyWallet {
getAccounts: () => Address[];
removeAccount: (address: Address) => void;
hasAccount: (address?: Address) => boolean;
signTransaction: (txParams: CeloTx) => Promise<EncodedTransaction>;
signTypedData: (address: Address, typedData: EIP712TypedData) => Promise<string>;
signPersonalMessage: (address: Address, data: string) => Promise<string>;
decrypt: (address: Address, ciphertext: Buffer) => Promise<Buffer>;
computeSharedSecret: (address: Address, publicKey: string) => Promise<Buffer>;
}
export interface Signer {
/**
* Signs the message and returns an EVM transaction
* @param addToV represents the chainId and is added to the recoveryId to prevent replay
* @param encodedTx is the RLPEncoded transaction object
*/
signTransaction: (addToV: number, encodedTx: RLPEncodedTx) => Promise<{
v: number;
r: Buffer;
s: Buffer;
}>;
signPersonalMessage: (data: string) => Promise<{
v: number;
r: Buffer;
s: Buffer;
}>;
signTypedData: (typedData: EIP712TypedData) => Promise<{
v: number;
r: Buffer;
s: Buffer;
}>;
getNativeKey: () => string;
decrypt: (ciphertext: Buffer) => Promise<Buffer>;
computeSharedSecret: (publicKey: string) => Promise<Buffer>;
}
Выполнить команду
Для локальной разработки. Не используйте в интернете!