Tagged articles
3 articles
Page 1 of 1
FunTester
FunTester
Aug 12, 2019 · Backend Development

Detecting Double-Spend Bugs in API Exchanges Using Multithreaded Tests

This article explains the concept of a “double‑spend” bug encountered during a coin‑exchange API, describes a multithreaded testing approach in Java to reproduce the issue, analyzes the root cause of non‑atomic balance checks, and provides sample code illustrating the detection and prevention method.

API testingBackendJava
0 likes · 8 min read
Detecting Double-Spend Bugs in API Exchanges Using Multithreaded Tests
Qunar Tech Salon
Qunar Tech Salon
Mar 30, 2018 · Blockchain

Understanding Double‑Spend Attacks and Bitcoin’s SPV Mechanism

The article explains what a double‑spend attack is, illustrates it with a concrete example, and describes how Bitcoin prevents such attacks through its blockchain ledger, Simplified Payment Verification (SPV) and Bloom‑filter techniques, highlighting the low data requirements for lightweight nodes.

BitcoinBlockchainSPV
0 likes · 8 min read
Understanding Double‑Spend Attacks and Bitcoin’s SPV Mechanism