opnet
Version:
The perfect library for building Bitcoin-based applications.
23 lines (22 loc) • 820 B
TypeScript
import { Address } from '../../node_modules/@btc-vision/transaction/build/index.js';
import { IEpoch, IEpochMiner, RawEpoch, RawEpochMiner } from './interfaces/IEpoch.js';
export declare class EpochMiner implements IEpochMiner {
readonly solution: Buffer;
readonly publicKey: Address;
readonly salt: Buffer;
readonly graffiti?: Buffer;
constructor(data: RawEpochMiner);
}
export declare class Epoch implements IEpoch {
readonly epochNumber: bigint;
readonly epochHash: Buffer;
readonly epochRoot: Buffer;
readonly startBlock: bigint;
readonly endBlock: bigint;
readonly difficultyScaled: bigint;
readonly minDifficulty?: string;
readonly targetHash: Buffer;
readonly proposer: EpochMiner;
readonly proofs: readonly Buffer[];
constructor(data: RawEpoch);
}