opnet
Version:
The perfect library for building Bitcoin-based applications.
14 lines (12 loc) • 338 B
text/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;
}