UNPKG

@kba-tools/genesis-tool

Version:

A forked repo from ConsenSys which helps to generate genesis block for Besu Network with xemptyBlockPeriod field.

11 lines 805 B
import { Address, NodeKeys, PrivateKey, PublicKey, EthAccount } from "../types/nodeKeys"; import { Consensus } from "../types/consensus"; import { CryptoCurve } from "../types/cryptoCurve"; export declare function generatePrivateKey(): PrivateKey; export declare function derivePublicKey(privKey: Buffer): PublicKey; export declare function deriveAddress(pubKey: Uint8Array): Address; export declare function generateEthAccount(password: string): Promise<EthAccount>; export declare function generateNodeKeys(password: string, curve: CryptoCurve): Promise<NodeKeys>; export declare function generateQuorumCliqueExtraDataString(signers: string[]): string; export declare function generateExtraDataString(validatorAddressList: Address[], consensus: Consensus): string; //# sourceMappingURL=nodeKeys.d.ts.map