import { H160 } from '@polkadot/types/interfaces'; import { KeyringPair } from '@polkadot/keyring/types'; import { Address20MultiAddress, EthereumKeyPair, HexString } from './payloads.js'; /** * Creates a Random Ethereum key */ export declare function createRandomKey(): EthereumKeyPair; /** * Create a partial KeyringPair from an Ethereum address */ export declare function ethereumAddressToKeyringPair(ethereumAddress: H160): KeyringPair; /** * Returns unified 32 bytes SS58 accountId * @param pair */ export declare function getUnifiedAddress(pair: KeyringPair): string; /** * Returns ethereum style public key with suffixed 0xee example: 0x19a701d23f0ee1748b5d5f883cb833943096c6c4eeeeeeeeeeeeeeeeeeeeeeee * @param pair */ export declare function getUnifiedPublicKey(pair: KeyringPair): Uint8Array; export declare function reverseUnifiedAddressToEthereumAddress(unifiedAddress: HexString): HexString; /** * converts an ethereum account to SS58 format * @param accountId20Hex */ export declare function getSS58AccountFromEthereumAccount(accountId20Hex: string): string; /** * * @param secretKey of secp256k1 keypair exported from any wallet (should be 32 bytes) */ export declare function getKeyringPairFromSecp256k1PrivateKey(secretKey: Uint8Array): KeyringPair; /** * Convert a keyPair into a 20 byte ethereum address * @param pair */ export declare function getAccountId20MultiAddress(pair: KeyringPair): Address20MultiAddress;