StackGate

Decentralized Access Control Infrastructure on Stacks

What is StackGate?

StackGate is a decentralized access control system built on the Stacks blockchain. It allows projects to manage who can access features, launches, or private resources using on-chain smart contracts instead of centralized databases.

Why StackGate?

Core Architecture

StackGate is modular and built using multiple smart contracts:

Allowlist Contract

The allowlist contract is the core gatekeeper. Only the admin can add or remove wallets.

This contract is unchanged and acts as the final authority.

Access Request Contract

This contract allows users to request access directly on-chain. Each request is a real blockchain transaction.

Stored data per wallet:

Access Flow (How It Works)

User Wallet | | request-access() (transaction) v Access Request Contract | | admin reviews requests (read-only) v Admin Decision | | add-wallet() (transaction) v Allowlist Contract | | is-allowed() check v Access Granted

Frontend Integration

The frontend connects a Stacks wallet and performs:

Access is granted only if the wallet is allowlisted.

Why This Design Is Correct

Use Cases