Labyrinth
WhitepaperResearchGet Private Access
  • 🔭Labyrinth Overview
    • Introduction
    • Why Labyrinth?
    • Who can use Labyrinth?
    • Reward and Fee in Labyrinth
    • Compliance
  • ⭐Use Labyrinth web App
    • How to use the Labyrinth app?
  • 📦Labyrinth SDK
    • ❓What is Labyrinth SDK?
    • ⚒️Quickstart
      • Setup Environment
      • Initialization
      • Private Transactions
      • Balance And Transaction History
      • Protocol Integration
    • 1️⃣Getting Started
    • 🔐Shielded Account
    • 📈Transaction
    • ▶️Initializing SDK
    • 💰Balances And History
    • 📤Sending Transaction
    • 🔌Integrating with DeFi Protocols
    • Labyrinth fee structure
  • Compliance Solution
    • Overview of Compliance
    • How Compliance Works
  • 💻CLI
    • ▶️Running SeDe CLI
  • Technical Implementation
    • Cryptographic Primitives
    • Shielded Account
    • Shielded Address
    • Account Abstraction
    • 🔵Core Architecture
      • 💵Note
      • 🌲Merkle Tree
      • 🔀JoinSplits
      • 🛡️Shielded Transaction
    • 🔄Protocol Interoperability
  • Resource and support
    • Roadmap
    • FAQs
    • Whitepaper
    • Selective De-Anonymization Compliance Paper
  • Contact and socials
    • Labyrinth Website
    • Twitter
    • Discord
    • Contact Us
Powered by GitBook
On this page
  1. Labyrinth SDK

What is Labyrinth SDK?

Labyrinth SDK provides APIs in TypeScript and Solidity to enable developers to interact with their users' shielded accounts and/or enable anonymous transactions in their protocols for their users.

The Labyrinth SDK is designed to simplify the integration of privacy and compliance features into blockchain applications. It abstracts the complexities of zero-knowledge proofs (ZKPs) and compliance requirements, making it easier for developers to create secure, private, and compliant dApps. The SDK provides the following key capabilities:

  1. TypeScript API: The TypeScript SDK is a set of APIs available for multiple purposes such as fetching shielded balance & transaction history and creating, signing, or proving a transaction. These functionalities are provided in a way familiar to web3 developers. Developers can design their custom UIs and utilize SDK to imbue privacy features in them.

  2. Solidity Contracts: Solidity contracts are also provided as part of the SDK to allow any integrating protocol to seamlessly allow their users to send anonymous transactions with their shielded wallet.

  3. Compatibility/Modularity: When integrating Labyrinth for anonymous transactions, existing protocols need not worry about changing anything in already deployed contracts via upgradeability, etc., and in-development protocols can only focus on designing their core API as usual. This is because integrating happens via an independent proxy contract that acts as a logic layer of communication between Labyrinth and protocol.

  4. Account Abstraction: The SDK supports and encourages EIP-4337 transactions, allowing users to pay gas fees using ERC-20 tokens as well as allowing developers to sponsor gas for their users. This greatly enhances the user experience as well as privacy.

  5. Multi-Chain Support: The SDK may support multiple blockchain networks, enabling developers to build privacy-preserving applications on various blockchains.

PreviousHow to use the Labyrinth app?NextQuickstart

Last updated 10 months ago

📦
❓