📖
Wiki
  • RAILGUN 101
    • Overview
    • Getting Started
    • RAILGUN Privacy System
      • Zero-Knowledge Cryptography
      • Trusted Setup Ceremony
      • Community Broadcasters
      • Privacy Overview
    • Wallets and Keys
    • Shielding Tokens
    • Using Shielded Tokens
      • Gasless Interactions
    • Unshielding Tokens
    • Integrating RAILGUN
      • RAILGUN SDKs
      • Adapt Modules
      • Example - DEX Swaps
    • RAILGUN Deductions
    • Helpful Links
  • User Compliance Tools
    • Private Proofs of Innocence
    • RAILGUN Assurance Suite
    • Koinly Tax Exports
  • RAIL Token & Governance
    • RAIL Token Overview
    • RAIL Active Governor Rewards
    • RAIL Tokenomics
    • How to Stake RAIL
    • Decentralized Governance
Powered by GitBook
On this page

Was this helpful?

  1. RAILGUN 101
  2. Integrating RAILGUN

Adapt Modules

PreviousRAILGUN SDKsNextExample - DEX Swaps

Last updated 10 months ago

Was this helpful?

Adapt Modules are smart contract extensions separate from the main RAILGUN privacy system. They allow for extended functionality without impacting the main privacy system’s code. Adapt Modules require 2 fields, a contract address, and parameters to execute the contract.

The parameters in Adapt Modules are not validated by the core RAILGUN code, which allows for them to be implemented with any custom logic, and arbitrarily across any smart contract. Any relevant proofs are only submittable from the specified contract, and they are only valid if they pass both the RAILGUN core protocol rules and the Adapt Module’s validation rules.

Execution parameters are bound into the SNARK proof itself, such that the interaction is only valid if the parameters are met.