Add Blitzpool attribution headers

This commit is contained in:
Ben
2026-06-22 10:40:01 -04:00
parent 7cfcc87f94
commit ee772e9a3c
19 changed files with 95 additions and 0 deletions
@@ -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 {
@@ -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';
+5
View File
@@ -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';
+5
View File
@@ -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';
+5
View File
@@ -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.
+5
View File
@@ -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 */
+5
View File
@@ -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.
+5
View File
@@ -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 ------------------------------------------
+5
View File
@@ -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.
+5
View File
@@ -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.
+5
View File
@@ -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.
+5
View File
@@ -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
+5
View File
@@ -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
+5
View File
@@ -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.
+5
View File
@@ -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';
@@ -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';
@@ -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';
@@ -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';
@@ -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';