The Soulshell BTC+ Architecture Blueprint
The Soulshell BTC+ framework is a comprehensive modular Layer 2 architecture that unlocks Bitcoin's full programmability, sub-microsecond off-chain computation, and autonomous AI agent integration without altering Bitcoin's base-layer consensus rules. Explore the interactive modules below to test cryptographic key tweaks, state channel memory limits, BitVM dispute resolution, and agent access controls.
Interactive Architectural Stack
Click a layer to inspect cryptographic mechanismsAutonomous Agent Overlay (ABAC & Ephemeral DIDs)
LLM Transaction Routing, Dynamic Trust Scoring, SEAgent Guardrails
Optimistic Execution Engines (BitVM2 & BitVMX)
Groth16 SNARK Verifier, RISC-V Trace Hash Chains, 1-of-N Honesty
LN-Symmetry (Eltoo) & Discreet Log Contracts (DLC)
SIGHASH_ANYPREVOUT (APO), PTLCs, Threshold Oracles, Covenants
Taproot (BIP 341/342) & MuSig2 (BIP 327)
Schnorr Key Aggregation, MAST Script Trees, X-Only Public Keys
Bitcoin Blockchain (secp256k1 & Consensus Rules)
UTXO Model, Block Size Limits (4MB), Stack Limits (1000 items, 520 bytes)
Autonomous Agent Overlay
Secures automated LLM agents against prompt injection and privilege escalation. Utilizes SEAgent framework, dynamic trust scoring, and task-bound ephemeral Decentralized Identifiers (DIDs).
Cryptographic Foundations: Taproot MAST & MuSig2
Taproot (BIP 341/342) merges pay-to-pubkey and pay-to-scripthash conditions using Merkleized Abstract Syntax Trees (MAST). Combined with MuSig2 (BIP 327), multi-party key aggregation compresses $n$-of-$n$ signers into a single, indistinguishable 64-byte Schnorr signature $P_2 = P + \text{Hash}(P \parallel h)G$.
Interactive Taproot Tweak Calculator
BIP 341 MathMuSig2 Schnorr Key Aggregator
BIP 327State Channels: LN-Penalty vs LN-Symmetry (Eltoo)
Legacy Lightning Network channels rely on penalty-based revocation (RSMC & HTLC), forcing watchtowers to store every historical key ($O(N)$ toxic waste). LN-Symmetry leverages BIP 118 SIGHASH_ANYPREVOUT (APO) to enable "latest-wins" floating updates, reducing watchtower storage to $O(1)$ constant space.
Watchtower Storage Overhead Simulator
APO Rebinding Mechanism
Attacker attempts to settle channel on outdated state N=10.
Honest node produces State #50 signed with SIGHASH_ANYPREVOUT. Signature drops sha_prevouts check.
State #50 spends directly from State #10 on-chain output before final settlement timelock expires.
Trustless Oracles & Discreet Log Contracts (DLCs)
DLCs enable privacy-preserving, conditional financial execution based on real-world events. By leveraging Taproot and MuSig2, Soulshell replaces heavy elliptic curve adaptor multiplications with deterministic Tapscript hash evaluations, dropping computation time per Contract Execution Transaction (CET) from hundreds of microseconds to ~5 microseconds.
DLC CET Compute Benchmark
Microsecond ScaleThreshold Oracle & Median Evaluation ($k$-of-$n$)
Oracles publish raw signature scalars without knowing which participants or financial contracts rely on their feeds. Total censorship resistance is maintained.
Turing-Complete Optimistic Verification: BitVM Ecosystem
BitVM brings arbitrary compute (EVMs, zk-SNARK verifiers, RISC-V) to Bitcoin off-chain, backed by 1-of-N optimistic fraud proofs on-chain. BitVM2 compresses massive 1.2 GB Groth16 verifier scripts into sub-4MB Taproot chunks, reducing dispute resolution from 70+ interactive steps to just 3 on-chain transactions.
BitVM Architecture On-Chain Complexity
Dispute Transaction CountBitVM2 3-Step Dispute Game
Operator posts financial stake and commits to SNARK verifier output on-chain.
Challenger detects state anomaly, posts fee bond, and demands intermediate proof revelation.
Single sub-4MB Tapscript chunk executes on-chain. Invalid claim slashes operator stake.
Autonomous AI Agent Security: Preventing the Confused Deputy
As autonomous LLM agents manage Lightning liquidity, watchtowers, and DLC execution, indirect prompt injection and RAG poisoning create "Confused Deputy" vulnerabilities. Soulshell enforces Mandatory Access Control (MAC), Attribute-Based Access Control (ABAC), dynamic trust scoring, and task-bound ephemeral DIDs.
Interactive Confused Deputy Threat Simulator
IAM WorkbenchMalicious prompt payload detected in RAG context. Ephemeral DID lacks key export attributes. Transaction execution halted automatically.
Soulshell Agent IAM Architecture
Agents generate short-lived Decentralized Identifiers per transaction session, strictly bounding blast radius if an individual session is compromised.
Directed graphs monitor Agent-to-Agent (A2A) and Agent-to-Tool data movement, ensuring untrusted RAG inputs cannot touch Taproot private keys.
High-value transactions (BitVM challenges or state channel settlements) require multi-attribute hardware enclave signatures before L1 broadcast.
Technical Reference & Standards Spec Sheet
Quick-reference matrix of Bitcoin Improvement Proposals (BIPs), script limits, cryptographic primitives, and execution boundaries defined in the Soulshell BTC+ white paper.