mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 09:05:06 -07:00
Add Blitzpool attribution headers
This commit is contained in:
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -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 ------------------------------------------
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user