diff --git a/src/ORM/payout-snapshot/payout-distribution.ts b/src/ORM/payout-snapshot/payout-distribution.ts index 20b1a9b..b7694f9 100644 --- a/src/ORM/payout-snapshot/payout-distribution.ts +++ b/src/ORM/payout-snapshot/payout-distribution.ts @@ -1,3 +1,8 @@ +/* + * Portions of this file are derived from or heavily informed by Blitzpool by warioishere. + * https://github.com/warioishere/blitzpool + */ + import { AddressType, getAddressInfo } from 'bitcoin-address-validation'; export interface PayoutAddressWork { diff --git a/src/ORM/payout-snapshot/payout-snapshot.service.ts b/src/ORM/payout-snapshot/payout-snapshot.service.ts index 39a9579..3739a3b 100644 --- a/src/ORM/payout-snapshot/payout-snapshot.service.ts +++ b/src/ORM/payout-snapshot/payout-snapshot.service.ts @@ -1,3 +1,8 @@ +/* + * Portions of this file are derived from or heavily informed by Blitzpool by warioishere. + * https://github.com/warioishere/blitzpool + */ + import { Injectable } from '@nestjs/common'; import { DataSource, EntityManager } from 'typeorm'; diff --git a/src/models/StratumV2Client.ts b/src/models/StratumV2Client.ts index f310991..2707813 100644 --- a/src/models/StratumV2Client.ts +++ b/src/models/StratumV2Client.ts @@ -1,3 +1,8 @@ +/* + * Portions of this file are derived from or heavily informed by Blitzpool by warioishere. + * https://github.com/warioishere/blitzpool + */ + import { ConfigService } from '@nestjs/config'; import { getAddressInfo } from 'bitcoin-address-validation'; import * as bitcoinjs from 'bitcoinjs-lib'; diff --git a/src/models/sv2/sv2-authority-key.ts b/src/models/sv2/sv2-authority-key.ts index 37f6d0e..f49ca77 100644 --- a/src/models/sv2/sv2-authority-key.ts +++ b/src/models/sv2/sv2-authority-key.ts @@ -1,3 +1,8 @@ +/* + * Portions of this file are derived from or heavily informed by Blitzpool by warioishere. + * https://github.com/warioishere/blitzpool + */ + import * as bs58 from 'bs58'; import * as crypto from 'crypto'; diff --git a/src/models/sv2/sv2-binary-codec.ts b/src/models/sv2/sv2-binary-codec.ts index ebb1703..f450934 100644 --- a/src/models/sv2/sv2-binary-codec.ts +++ b/src/models/sv2/sv2-binary-codec.ts @@ -1,3 +1,8 @@ +/* + * Portions of this file are derived from or heavily informed by Blitzpool by warioishere. + * https://github.com/warioishere/blitzpool + */ + // ── SV2 Binary Codec ──────────────────────────────────────────────── // Sequential Buffer reader / accumulator-pattern writer for all SV2 // data types. All multi-byte integers are little-endian per spec. diff --git a/src/models/sv2/sv2-constants.ts b/src/models/sv2/sv2-constants.ts index f1b54b9..a614a66 100644 --- a/src/models/sv2/sv2-constants.ts +++ b/src/models/sv2/sv2-constants.ts @@ -1,3 +1,8 @@ +/* + * Portions of this file are derived from or heavily informed by Blitzpool by warioishere. + * https://github.com/warioishere/blitzpool + */ + // ── SV2 Protocol Constants ────────────────────────────────────────── /** Standard (unencrypted) frame header: 2-byte ext+type + 3-byte length + 1-byte channel bit = 6 */ diff --git a/src/models/sv2/sv2-extended-messages.ts b/src/models/sv2/sv2-extended-messages.ts index eb5f0fd..c84d994 100644 --- a/src/models/sv2/sv2-extended-messages.ts +++ b/src/models/sv2/sv2-extended-messages.ts @@ -1,3 +1,8 @@ +/* + * Portions of this file are derived from or heavily informed by Blitzpool by warioishere. + * https://github.com/warioishere/blitzpool + */ + // ── SV2 Extended Mining Channel Messages ──────────────────────────── // Interfaces + serialize/deserialize for extended channel message types. diff --git a/src/models/sv2/sv2-extranonce-manager.ts b/src/models/sv2/sv2-extranonce-manager.ts index f7ede76..a9ee1dc 100644 --- a/src/models/sv2/sv2-extranonce-manager.ts +++ b/src/models/sv2/sv2-extranonce-manager.ts @@ -1,3 +1,8 @@ +/* + * Portions of this file are derived from or heavily informed by Blitzpool by warioishere. + * https://github.com/warioishere/blitzpool + */ + import { SV2_EXTENDED_TOTAL_EXTRANONCE_SIZE_BYTES } from '../stratum.constants'; // -- SV2 Extranonce Manager ------------------------------------------ diff --git a/src/models/sv2/sv2-frame.ts b/src/models/sv2/sv2-frame.ts index 263e330..d64bcac 100644 --- a/src/models/sv2/sv2-frame.ts +++ b/src/models/sv2/sv2-frame.ts @@ -1,3 +1,8 @@ +/* + * Portions of this file are derived from or heavily informed by Blitzpool by warioishere. + * https://github.com/warioishere/blitzpool + */ + // ── SV2 Frame Encoding / Decoding ─────────────────────────────────── // Handles 6-byte frame headers, encrypted framing with ChaCha20-Poly1305 // AEAD chunking, and incremental TCP reassembly. diff --git a/src/models/sv2/sv2-jdp-messages.ts b/src/models/sv2/sv2-jdp-messages.ts index 81cb65b..6f7f494 100644 --- a/src/models/sv2/sv2-jdp-messages.ts +++ b/src/models/sv2/sv2-jdp-messages.ts @@ -1,3 +1,8 @@ +/* + * Portions of this file are derived from or heavily informed by Blitzpool by warioishere. + * https://github.com/warioishere/blitzpool + */ + // ── SV2 Job Declaration Protocol (JDP) Messages ──────────────────── // Interfaces + serialize/deserialize for all JDP message types and // the Mining Protocol custom job bridge messages. diff --git a/src/models/sv2/sv2-messages.ts b/src/models/sv2/sv2-messages.ts index 88bdb63..282cb0b 100644 --- a/src/models/sv2/sv2-messages.ts +++ b/src/models/sv2/sv2-messages.ts @@ -1,3 +1,8 @@ +/* + * Portions of this file are derived from or heavily informed by Blitzpool by warioishere. + * https://github.com/warioishere/blitzpool + */ + // ── SV2 Mining Protocol Messages ──────────────────────────────────── // Interfaces + serialize/deserialize for each message needed for // standard mining channels. diff --git a/src/models/sv2/sv2-noise.ts b/src/models/sv2/sv2-noise.ts index bac91a3..cc7420c 100644 --- a/src/models/sv2/sv2-noise.ts +++ b/src/models/sv2/sv2-noise.ts @@ -1,3 +1,8 @@ +/* + * Portions of this file are derived from or heavily informed by Blitzpool by warioishere. + * https://github.com/warioishere/blitzpool + */ + // ── SV2 Noise NX Handshake & Encrypted Transport ──────────────────── // Implements Noise_NX_Secp256k1+EllSwift_ChaChaPoly_SHA256 for SV2. // Server (responder) side: receives Act 1, sends Act 2, then diff --git a/src/models/sv2/sv2-siphash.ts b/src/models/sv2/sv2-siphash.ts index 94759e8..ef3f3f7 100644 --- a/src/models/sv2/sv2-siphash.ts +++ b/src/models/sv2/sv2-siphash.ts @@ -1,3 +1,8 @@ +/* + * Portions of this file are derived from or heavily informed by Blitzpool by warioishere. + * https://github.com/warioishere/blitzpool + */ + // ── SipHash-2-4 ──────────────────────────────────────────────────── // Pure TypeScript implementation of SipHash-2-4 for SV2 JDP short // transaction IDs. Produces 8-byte (64-bit) hashes, truncated to diff --git a/src/models/sv2/sv2-tdp-messages.ts b/src/models/sv2/sv2-tdp-messages.ts index 59a63b5..14d922e 100644 --- a/src/models/sv2/sv2-tdp-messages.ts +++ b/src/models/sv2/sv2-tdp-messages.ts @@ -1,3 +1,8 @@ +/* + * Portions of this file are derived from or heavily informed by Blitzpool by warioishere. + * https://github.com/warioishere/blitzpool + */ + // ── SV2 Template Distribution Protocol (TDP) Messages ────────────── // Interfaces + serialize/deserialize for all TDP message types. diff --git a/src/services/custom-work.service.ts b/src/services/custom-work.service.ts index 490a501..99a8682 100644 --- a/src/services/custom-work.service.ts +++ b/src/services/custom-work.service.ts @@ -1,3 +1,8 @@ +/* + * Portions of this file are derived from or heavily informed by Blitzpool by warioishere. + * https://github.com/warioishere/blitzpool + */ + import { Injectable } from '@nestjs/common'; import { BufferReader } from '../models/sv2/sv2-binary-codec'; import { Sv2SetCustomMiningJob } from '../models/sv2/sv2-jdp-messages'; diff --git a/src/services/sv2-job-declaration-registry.service.ts b/src/services/sv2-job-declaration-registry.service.ts index 483b56b..c6bafa8 100644 --- a/src/services/sv2-job-declaration-registry.service.ts +++ b/src/services/sv2-job-declaration-registry.service.ts @@ -1,3 +1,8 @@ +/* + * Portions of this file are derived from or heavily informed by Blitzpool by warioishere. + * https://github.com/warioishere/blitzpool + */ + import { Injectable } from '@nestjs/common'; import * as crypto from 'crypto'; diff --git a/src/services/sv2-job-declaration.service.ts b/src/services/sv2-job-declaration.service.ts index 6737405..e3f27d7 100644 --- a/src/services/sv2-job-declaration.service.ts +++ b/src/services/sv2-job-declaration.service.ts @@ -1,3 +1,8 @@ +/* + * Portions of this file are derived from or heavily informed by Blitzpool by warioishere. + * https://github.com/warioishere/blitzpool + */ + import { Injectable, OnModuleInit } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; import * as bitcoinjs from 'bitcoinjs-lib'; diff --git a/src/services/sv2-template-distribution.service.ts b/src/services/sv2-template-distribution.service.ts index bb62416..947f33a 100644 --- a/src/services/sv2-template-distribution.service.ts +++ b/src/services/sv2-template-distribution.service.ts @@ -1,3 +1,8 @@ +/* + * Portions of this file are derived from or heavily informed by Blitzpool by warioishere. + * https://github.com/warioishere/blitzpool + */ + import { Injectable, OnModuleInit } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; import * as bitcoinjs from 'bitcoinjs-lib'; diff --git a/src/services/template-provider.service.ts b/src/services/template-provider.service.ts index 6920367..dda7451 100644 --- a/src/services/template-provider.service.ts +++ b/src/services/template-provider.service.ts @@ -1,3 +1,8 @@ +/* + * Portions of this file are derived from or heavily informed by Blitzpool by warioishere. + * https://github.com/warioishere/blitzpool + */ + import { Injectable, OnModuleInit } from '@nestjs/common'; import * as bitcoinjs from 'bitcoinjs-lib'; import { Subscription } from 'rxjs';