@frequency-chain/ethereum-utils 1.17.0-rc4 → 1.17.0-rc6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/address.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { H160 } from '@polkadot/types/interfaces';
2
2
  import { KeyringPair } from '@polkadot/keyring/types';
3
- import { EthereumKeyPair, HexString } from './payloads';
3
+ import { Address20MultiAddress, EthereumKeyPair, HexString } from './payloads.js';
4
4
  /**
5
5
  * Creates a Random Ethereum key
6
6
  */
@@ -25,3 +25,13 @@ export declare function reverseUnifiedAddressToEthereumAddress(unifiedAddress: H
25
25
  * @param accountId20Hex
26
26
  */
27
27
  export declare function getSS58AccountFromEthereumAccount(accountId20Hex: string): string;
28
+ /**
29
+ *
30
+ * @param secretKey of secp256k1 keypair exported from any wallet (should be 32 bytes)
31
+ */
32
+ export declare function getKeyringPairFromSecp256k1PrivateKey(secretKey: Uint8Array): KeyringPair;
33
+ /**
34
+ * Convert a keyPair into a 20 byte ethereum address
35
+ * @param pair
36
+ */
37
+ export declare function getAccountId20MultiAddress(pair: KeyringPair): Address20MultiAddress;