opnet
Version:
The perfect library for building Bitcoin-based applications.
13 lines (12 loc) • 337 B
TypeScript
export interface ProofOfWorkChallenge {
readonly preimage: Buffer;
readonly reward: bigint;
readonly difficulty?: bigint;
readonly version?: number;
}
export interface RawProofOfWorkChallenge {
readonly preimage: string;
readonly reward: string;
readonly difficulty?: string;
readonly version?: number;
}