Skip to main content
This section provides detailed technical specifications and reference materials for developers, researchers, and advanced users.

Appendix A: State Machines & Sequence Diagrams

Detailed state machines and sequence diagrams for on-/off-ramp and dispute flows.

A.1 On-Ramp State Machine

States:
Transitions:

A.2 Off-Ramp State Machine

States:
Key Differences from On-Ramp:
  • USDC locked at order creation
  • Merchant posts bond at match acceptance
  • Merchant must provide payment proof
  • User can dispute non-receipt
  • Default settlement if no dispute within T_dispute

A.3 Dispute Resolution Sequence

Appendix B: Proof Interface Specs

Inputs/outputs for identity predicates; verifier APIs; planned evidence module interface.

B.1 ZK-KYC Proof Interface

Proof Type: Government ID VerificationPrivate Inputs:
Public Inputs:
Proof Output:
Verification:

B.2 Social Account Verification (Reclaim Protocol)

Proof Type: Social Account Verification via Reclaim ProtocolSupported Platforms:
  • GitHub (developer reputation)
  • LinkedIn (professional verification)
  • Twitter (social presence)
  • Others as added by Reclaim
Private Inputs:
  • OAuth tokens or session cookies (never exposed)
  • Account credentials (never exposed)
  • Full profile data (selectively revealed)
Public Inputs:
Proof Output:
Integration:

B.3 Bank Transaction Proof (Planned)

Proof Type: Payment ConfirmationPrivate Inputs:
Public Inputs:
Proof Output:
Verification Flow:
  1. Merchant claims fiat payment sent/received
  2. Merchant generates zkTLS proof from banking portal
  3. Proof submitted to on-chain verifier or off-chain relayer
  4. Verifier checks proof cryptographically
  5. Attestation hash posted on-chain
  6. Order settlement proceeds automatically
Privacy Properties:
  • Bank name not revealed
  • Account numbers not revealed
  • Other transactions not revealed
  • Only proof of specific transaction posted

Appendix C: Oracle Adapter Spec

Sources, aggregation, parameters.

C.1 Oracle Architecture

Components:
Current Sources (Example for USDC/USD):

C.2 Price Aggregation Algorithm

Median Calculation:
TWAP Calculation:
Combined Approach:

Appendix D: Reputation Math

Scoring formulae, decay, thresholds, and examples.

D.1 Reputation Formula

Base Formula:
Trade Reputation:
KYC Reputation:
Network Reputation:
Time Decay:
Penalties:

D.2 Tier Thresholds

Tier Definitions:Tier Progression Example:

Appendix E: Governance Parameters Registry

With safe ranges and change procedures.

E.1 Complete Parameter List

Economic Parameters:
Time Parameters:
Oracle Parameters:

Appendix F: Glossary

Protocol terms and rail classes.
A
  • Admin Settlement: Current dispute resolution method where authorized admins issue verdicts based on evidence
  • AML (Anti-Money Laundering): Regulations and practices designed to prevent money laundering
B
  • Base L2: Ethereum Layer 2 scaling solution where P2P Protocol is currently deployed
  • Bond: Collateral posted by users or merchants, slashed for fraudulent behavior
C
  • Circuit Breaker: Automatic trading pause triggered by abnormal conditions
  • Credibility: Reputation earned through honest protocol participation
D
  • Dispute Window: Time period during which parties can contest order outcomes
F
  • Futarchy: Governance mechanism using prediction markets for decision-making
K
  • KYC (Know Your Customer): Identity verification processes
M
  • Merchant: Vetted liquidity provider who mediates fiat-crypto exchanges
O
  • Off-Ramp: Converting crypto to fiat
  • On-Ramp: Converting fiat to crypto
  • Oracle: System providing external data (prices) to smart contracts
P
  • PIX: Brazil’s instant payment system
  • Proof-of-Credibility (PoC): P2P Protocol’s reputation system
R
  • Rail: Payment method or system (UPI, PIX, SEPA, etc.)
  • Reputation Points (RP): Numerical score representing user credibility
S
  • Slashing: Penalty imposed by taking a portion of posted bonds
  • Settlement: Final completion of a trade with fund transfers
T
  • TGE (Token Generation Event): Token launch, planned March 2026
  • TWAP (Time-Weighted Average Price): Price averaging method resistant to manipulation
U
  • UPI (Unified Payments Interface): India’s instant payment system
Z
  • Zero-Knowledge Proof (ZK Proof): Cryptographic method to prove statements without revealing underlying data
  • ZK-KYC: Identity verification using zero-knowledge proofs
  • zkTLS: Zero-knowledge proofs for TLS session data, used by Reclaim Protocol

Document Metadata

Version: 1.0
Date: March 5, 2026
Status: Pre-TGE Release
Next Review: June 2026
Contributing Authors:
  • P2P Protocol Core Team
  • Community Contributors
  • Technical Advisors
Review and Approval:
  • Technical Review: Completed
  • Security Review: Completed
  • Legal Review: Completed
  • Community Review: Open
License: This whitepaper is released under Creative Commons Attribution 4.0 International (CC BY 4.0). You are free to share and adapt the material with appropriate attribution.
End of WhitepaperThank you for reading the P2P Protocol whitepaper. For questions, feedback, or to get involved:Let’s build the future of decentralized finance together.