UNPKG

opnet

Version:

The perfect library for building Bitcoin-based applications.

10 lines (9 loc) 270 B
import { stringToBuffer } from '../utils/StringToBuffer.js'; export class EpochTemplate { epochNumber; epochTarget; constructor(data) { this.epochNumber = BigInt(data.epochNumber); this.epochTarget = stringToBuffer(data.epochTarget); } }