How bob-collective/bitcoin-spv works
bitcoin-spv is a Solidity toolkit for EVM applications to validate Bitcoin data. Its documented capabilities include pure transaction and header validation, higher-level header-chain and transaction-inclusion-proof evaluation, and a standardized JSON proof format. The tree identifies likely implementation modules, but no source excerpts were provided, so internal calls and data flow cannot be verified; the graph shows only the README-documented external use relationship.
Main entry points: src Bitcoin SPV toolkit
Components 12
Bitcoin Data
- Bitcoin utilities
src/BTCUtils.sol - Bitcoin utility delegate
src/BTCUtilsDelegate.sol - SegWit utilities
src/SegWitUtils.sol
Proof Validation
- Bitcoin SPV toolkit
src - Signature checks
src/CheckBitcoinSigs.sol - Signature check delegate
src/CheckBitcoinSigsDelegate.sol - SPV validation
src/ValidateSPV.sol - SPV validation delegate
src/ValidateSPVDelegate.sol - JSON proof format
Shared Helpers
- Byte utilities
src/BytesLib.sol - Safe arithmetic
src/SafeMath.sol
Other components
- EVM application
Connections 1
- EVM application → Bitcoin SPV toolkit: uses
README.md