bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 12쪽 중 10쪽
dium™ component.
Administration and User Management
Manage users and roles to control access to your Prividium™ chain.
## /zk-stack/prividium/administration-user-management
ZK Stack
Administration and User Management
Manage users and roles to control access to your Prividium™ chain.
User management in Prividium™ controls who can access your network and what actions they can perform.
The system combines
users
(individual identities) and
roles
(permission groups) to provide flexible, granular access control.
Administrators configure both through the Admin Dashboard.
Prividium™ is a licensed product. Non-production use requires accepting the license terms;
production deployments require a commercial agreement.
For implementation guides and reference documentation, visit the official
Prividium documentation
.
Admin Panel
The Admin Dashboard provides a user interface for permission management where administrators configure data access rules and monitor system access patterns.
Only designated admins can access the Admin Dashboard to manage users, roles, and contract permissions.
The initial admin is defined when the Prividium™ API launches.
To add more admins, the initial admin must manually grant other users the admin role.
The admin status itself is a role that can be assigned to users.
Keep at least two Admin users configured to prevent lockout scenarios.
Through the Admin Dashboard, administrators can:
View and search users
including their emails, associated wallets, and assigned roles
Add and remove users
to control network access
Create and manage roles
to define access privileges
Assign roles to users
to grant specific permissions
Configure contract permissions
to control function-level access
Users
Users represent individual identities that can authenticate and interact with your Prividium™ network.
Each user can authenticate through an identity provider like Okta, a crypto wallet via SIWE (Sign-In With Ethereum), or both methods.
Authentication Methods
Prividium™ supports three user types based on authentication:
Type
Authentication
Managed From
Notes
OIDC user
OAuth 2.0 (OIDC providers)
Admin Dashboard
Linked by subject ID
Wallet user
SIWE
Admin Dashboard
Identified by wallet address
Hybrid user
OAuth 2.0 (OIDC providers) or SIWE
Admin Dashboard
Can use either method to authenticate
Hybrid users provide flexibility, allowing authentication through either corporate identity systems or crypto wallets depending on the context.
User Capabilities
The Admin Dashboard provides comprehensive user management:
Create users
with email, subject ID, or wallet addresses
Link multiple wallets
to a single user identity
Assign roles
to define access permissions
Edit user details
including authentication methods and role assignments
Remove users
and revoke all associated access
All linked wallets inherit the same role-based permissions assigned to the user.
Changes to user permissions take effect immediately, though users may need to refresh their session to see updated access.
Roles
Roles define access levels by grouping permissions that determine which contracts and functions users can call through the Proxy API.
Each role represents a set of privileges that can be assigned to one or more users.
Role Management
Administrators create and manage roles through the Admin Dashboard:
Create roles
with descriptive names matching organizational structure
Assign roles to users
to grant permissions
Combine multiple roles
per user for flexible access control
Update or delete roles
as deployment requirements evolve
A user's effective permissions are the combination of all permissions granted to their assigned roles.
This allows fine-grained control while maintaining simplicity through role-based grouping.
Common Role Patterns
Role
Purpose
Typical Permissions
Admin
Full system management
Manage users, roles, permissions, and disclosure settings
Trader
Execute transactions
Write access to token contracts and trading functions
Auditor
Read-only observer
View contract data and public disclosures
Operator
System maintenance
Read/write access to operational contracts only
Customize role names and scopes to match your organization's workflow and security requirements.
Roles cannot be deleted while assigned to active users. Reassign or remove those users first.
Access Control Flow
The user and role system integrates with Prividium's permission architecture:
User authenticates
via Okta or wallet signature
System identifies user
and retrieves assigned roles
User calls contract function
through Proxy API
Prividium API checks
if user's roles permit the function call
Request proceeds or fails
based on permission evaluation
This architecture separates identity management (users) from access control (roles and permissions), enabling flexible security policies that adapt to
changing requirements.
Proxy RPC API
Understand how the Prividium™ Proxy RPC enforces access control.
Permissions and Access Control
Learn how Prividium™ controls access to deploying and calling smart contracts.
## /zk-stack/prividium/permissions-overview
ZK Stack
Permissions and Access Control
Learn how Prividium™ controls access to deploying and calling smart contracts.
Prividium™ provides granular control over who can deploy contracts and call contract functions on your chain.
The Prividium API manages all access control through a permission system that authenticates users and validates their authorization before executing requests.
Prividium™ is a licensed product. Non-production use requires accepting the license terms;
production deployments require a commercial agreement.
For implementation guides and reference documentation, visit the official
Prividium documentation
.
How Permissions Work
The Prividium API sits between clients and the standard RPC API, controlling
who
can deploy contracts and call specific contract functions.
All requests require user authentication via the selected OIDC provider or SIWE (Sign-In With Ethereum) wallet signatures.
When a user attempts to deploy or interact with a contract on a Prividium™ chain:
User authenticates
via the selected OIDC provider or wallet signature
User signs transaction
with an EIP-712 typed message including a JSON Web Token (JWT)
Prividium API receives request
and verifies the JWT and wallet address
Permission check
validates whether the user has authorization
Request proceeds or fails
based on the permission evaluation
If authorized
, the request forwards to the standard RPC API for execution
Chain administrators configure all permissions through the Admin Dashboard.
Contract Deployment Permissions
Only authorized users can deploy smart contracts to a Prividium™ chain.
Administrators control deployment access by assigning specific roles to users who need deployment privileges.
This ensures:
Controlled contract deployment
to prevent unauthorized or malicious contracts
Audit trail
of who deployed which contracts
Compliance
with organizational policies for contract deployment
Administrators configure deployment permissions through the Admin Dashboard by assigning appropriate roles to users.
Learn more about user management in
User Management
.
Contract Function Permissions
After deployment, administrators configure granular permissions for each contract function.
The Prividium API enforces these permissions every time a user attempts to call a function.
Permission Types
Each contract function can be assigned one of the following permission types:
Forbidden
: Prevents any user from calling the function. This is the default permission type for all functions after a contract is deployed.
All Users
: Allows any authenticated user to call the function without role restrictions. The user must still authenticate, but
no specific role is required.
Check Role
: Restricts function access to authenticated users with specific roles. The Prividium API checks roles assigned to the authenticated
user and only permits the call if the user has a required role.
Restrict Argument
: Allows any authenticated user to call the function, but restricts specific function arguments. Users can only pass argument
values that meet the configured restrictions. For example, you might restrict a transfer function to only allow transfers below a certain amount.
Check Role AND Restrict Argument
: Combines role-based access control with argument restrictions. Users must have the required role AND can only
use permitted argument values. Both conditions must be satisfied for the call to proceed.
Check Role OR Restrict Argument
: Provides flexible access where users can gain authorization either through having a required role OR by using
restricted arguments. Role holders get unrestricted access, while users without the role get limited access through argument restrictions.
Configuration
Administrators configure function permissions through the Admin Dashboard:
Select a deployed contract
from the contracts list
View all contract functions
with their current permission settings
Assign permission types
to each function
Configure role requirements
for role-based permissions
Define argument restrictions
for argument-based permissions
Changes to permissions take effect immediately. Users may need to refresh their session to see updated access.
User Authentication
All permissions require user authentication. Prividium™ supports two authentication methods:
OIDC Authentication
Users authenticate through your organization's identity provider. This integrates with existing corporate identity systems and provides centralized
user management.
Wallet Authentication (SIWE)
Users authenticate by signing a message with their Ethereum wallet using the Sign-In With Ethereum (SIWE) standard. This provides crypto-native
authentication without requiring a corporate identity provider.
Hybrid Authentication
Users can be configured to authenticate with either Okta or a linked wallet, providing flexibility for different use cases and user preferences.
Permission Management
Administrators manage permissions through the Admin Dashboard, which provides:
User management
- Create users, assign roles, link wallets
Role management
- Define roles and assign permissions to roles
Contract permissions
- Configure function-level access control
Audit capabilities
- Monitor access patterns and permission changes
For detailed information on managing users and roles, see
User Management
.
Administration and User Management
Manage users and roles to control access to your Prividium™ chain.
Prividium™ SDK
Get started with the Prividium™ SDK.
## /zk-stack/prividium/sdk
ZK Stack
Prividium™ SDK
Get started with the Prividium™ SDK.
Unlike other Prividium™ components, the
Prividium™ SDK
is distributed under the MIT License.
For implementation guides and reference documentation, visit the official
Prividium documentation
.
The
Prividium™ SDK
is a TypeScript SDK for integrating with Prividium™'s authorization system.
It provides a seamless authentication flow and secure RPC communication for applications running on a Prividium™, including:
Popup-based OAuth Authentication
JWT Token Management
Viem
Integration
Proxy CLI for local authenticated JSON-RPC proxy
Security Considerations
Token Storage:
Tokens are stored in local storage by default. Developers may consider custom storage for sensitive applications.
CSRF Protection:
The OAuth state parameter provides CSRF protection during authentication flow.
Token Expiration:
The SDK automatically validates token expiration and clears expired tokens.
Origin Validation:
Popup messages are validated against the configured auth origin.
Permissions and Access Control
Learn how Prividium™ controls access to deploying and calling smart contracts.
Developer Considerations
Key differences when building on Prividium™ chains.
## /zk-stack/prividium/developer-considerations
ZK Stack
Developer Considerations
Key differences when building on Prividium™ chains.
This document provides a high-level overview of developer considerations for Prividium™ chains.
For detailed documentation with code examples, see the embedded documentation in the Admin Panel and User Panel.
For implementation guides and reference documentation, visit the official
Prividium documentation
.
Prividium™ chains enforce authentication and permissions at the RPC layer. You must adapt standard Web3 patterns to work with these requirements.
Authentication Required
All RPC interactions require authentication. The system rejects unauthenticated requests.
Users authenticate via OAuth 2.0 (OIDC providers or crypto-native SIWE).
Applications register as OAuth clients in the Admin Panel.
Scripts authenticate programmatically via the Prividium API.
Use the
Prividium™ SDK
to manage authentication flows.
Contract Deployment
Chain administrators must grant explicit deployment permissions before you can deploy contracts.
Request deployment permissions from your network administrator.
Authenticate before deployment using the CLI proxy, or manual token injection in request headers.
Configure function permissions in the Admin Panel immediately after deployment. All functions default to
Forbidden
.
Dual RPC Endpoints
Prividium™ provides separate RPC endpoints for different use cases.
Endpoint
Authentication
Used by
/rpc
(Proxy RPC)
Bearer token in header
Scripts (Viem, Ethers.js)
/wallet/{token}
(User RPC)
Token embedded in URL
Browser wallets (MetaMask, etc.)
Transaction Workflow
Browser wallets (MetaMask, etc.) require additional steps compared to public chains when you send transactions.
Pre-fetch parameters:
Retrieve nonce, gas estimate, and gas price using an authenticated client.
Authorize transaction:
Call
authorizeTransaction()
from the Prividium™ SDK before each transaction.
Send transaction:
Include pre-fetched values explicitly.
Wallet tokens expire and work for a single transaction. Enable them immediately before sending.
Permission Model
The system checks permissions defined in the Admin Panel for all contract interactions.
Read functions:
The system checks permissions on
eth_call
.
Write functions:
The system checks permissions on both simulation and execution.
Default state:
All functions default to
Forbidden
until you configure them.
Configure access rules using permission types:
All Users
,
Check Role
, or
Restrict Argument
.
Key Differences from Public Chains
Aspect
Public Chain
Prividium™
RPC Access
Open
Authenticated
Contract Deployment
Permissionless
Requires permission
Function Calls
Open
Permission-controlled
Transaction Signing
Wallet only
Wallet + token enablement
Network Configuration
Static RPC
User-specific RPC URLs
Prividium™ SDK
Get started with the Prividium™ SDK.
Open Source License
Understand ZK Stack open-source licensing.
## /zk-stack/license
ZK Stack
Open Source License
Understand ZK Stack open-source licensing.
The ZK Stack is open-source software available under permissive licenses. Organizations can freely use, modify, and deploy ZK Stack components.
License Terms
ZK Stack components are dual-licensed under:
MIT License
Apache License 2.0
Choose either license based on your project requirements. Both licenses permit commercial use, modification, and distribution.
What's Included
The following components are covered under the open-source licenses:
ZKsync OS node and sequencer
Airbender Prover
Smart contract system
Portal and Bridge
Block explorer (open-source version)
SDKs & CLI tools
Source Code
Access the source code on GitHub:
ZKsync OS
ZKsync OS Server
Airbender
System Contracts
Bridge and Portal
Block explorer
SDK
Developer Considerations
Key differences when building on Prividium™ chains.
Getting started with ZKsync protocol
Dive deep into ZKsync Protocol, covering everything from rollups to system contracts and fee structures.
## /zksync-protocol/rollup
ZKsync Docs
ZKsync protocol overview
Learn about ZK Rollups
ZKsync is a protocol designed to enable the creation of a network of interoperable zero-knowledge (ZK) L2 rollups and validiums built with
ZK Stack
.
This document offers an overview of the protocol’s architecture, focusing on how its modular design supports the development of
multiple interconnected chains. Together, these chains enhance Ethereum’s scalability, security, and usability without compromising on decentralization.
What is a Rollup?
A rollup is a blockchain scalability solution that processes and stores transaction data off-chain
while ensuring the data's integrity and availability on the main chain.
By doing so, rollups significantly increase transaction throughput without compromising security.
There are primarily two types of rollups: Optimistic Rollups and Zero-Knowledge (zk) Rollups.
ZKsync Chains utilize the latter, leveraging cryptographic proofs for security and efficiency.
How and why it works?
Ethereum's decentralized network has limited transaction throughput because its capacity doesn't scale with the number of validators.
In essence, each validator performs the same job of validating each processed transaction, creating a bottleneck.
In contrast, in Web2 scalability improves with the addition of more servers,
as the network's capacity to handle requests increases linearly with each new server.
The concept of a rollup addresses the blockchain scalability issue by moving computation off-chain
and only sending the result of these computations back to Ethereum.
ZK rollups, in particular, submit a validity proof alongside the execution result,
making the validation of a zk proof significantly cheaper than re-executing each transaction.
The Data Availability (DA) Problem
A crucial aspect of ensuring the integrity and security of rollups is addressing the Data Availability (DA) problem.
If the state of the rollup is unknown to observers of Ethereum,
then in scenarios where the validators (centralized or decentralized) stop processing,
it becomes impossible to make state transitions without relying on a trusted validator.
However, if the data is always available to observers, it's feasible to restore the state and continue processing the network
even if the trusted validator ceases its operation.
This link provides further details on the Data Availability problem:
Ethereum Data Availability
.
ZK proof
Zero-Knowledge Proofs (ZKPs) offer a method to execute verifiable programs, wherein it's cheap to verify a zk proof on-chain.
In the context of ZKsync, ZKPs allow for the confirmation of the correctness of transaction execution without re-executing them.
ZKsync components
ZKsync protocol consists of the following critical components:
Node Implementation
: This component is responsible for receiving transactions from users and processing them.
It maintains the off-chain state and handles the aggregation of transactions into batches as well as sends sealed batches onchain.
ZK Circuits
: These circuits are intricate mathematical constructs that represent verifiable computation logic.
They are responsible for determining what can be verified as a valid proof.
Specifically for ZKsync, these circuits define the computation rules for execution, which also defines how transactions are executed.
Prover
: The prover constructs the cryptographic proofs that attest to the correctness of the transactions processed off-chain.
These proofs can be verified later on Ethereum, ensuring that only valid transactions are accepted.
Smart Contracts
: These contracts are the on-chain component of the zkRollup.
They are responsible for verifying the proofs submitted by the prover and updating the Ethereum blockchain's state accordingly.
Additionally, they facilitate interactions between Ethereum and ZKsync, such as deposits, withdrawals, and cross-layer messaging.
For additional context or insights, consider exploring these resources:
Node Implementation
:
https://github.com/matter-labs/zksync-os-server
ZK Circuits
:
https://github.com/matter-labs/zksync-protocol
Prover
:
https://github.com/matter-labs/zk프로젝트로 돌아가기