About SmartLaw Tokens
Secure
Built on Polygon blockchain with role-based token access control
Legal-First
Designed specifically for legal artifacts and processes
Decentralized
Leverages IPFS for metadata with immutable on-chain records
Interoperable
Part of the broader Evidencer legal ecosystem
Overview
SmartLaw Tokens is part of the Evidencer ecosystem, a suite of decentralized applications focused on legal digital artifacts, evidence management, and on-chain legal processes. This platform enables the tokenization, verification, and management of legal documents and administrative permissions through a sophisticated ERC-1155 multi-token contract on the Polygon blockchain.
Token Types
Administrative Tokens
Administrative tokens implement role-based access control in the SmartLaw ecosystem. Each admin token represents a specific role (such as Superuser, Minter, Creator, etc.) and contains encoded permissions through sophisticated bit manipulation in the token ID itself. These tokens can be global (applying to all tokens) or scoped (limited to specific token types).
Digital Artifact NFTs
These tokens represent digital legal artifacts such as documents, evidence, or official records. Each NFT contains metadata stored on IPFS, ensuring the permanence and immutability of legal information. The metadata includes information about the artifact type, content, timestamps, and cryptographic verification.
Utility Tokens
Utility tokens serve specific functions within the legal workflow, such as claim tokens, access tokens, process tokens, and verification tokens. These tokens facilitate specific actions and workflows within the Evidencer ecosystem, enabling complex legal processes to be safely and transparently executed on-chain.
Technical Architecture
The SmartLaw Tokens application is built with modern web technologies and blockchain integration:
- Smart Contract: ERC-1155 multi-token contract deployed on Polygon Mainnet
- Frontend: React with Next.js for server-side rendering and API routes
- Blockchain Interaction: Ethers.js for connecting to Polygon through Infura RPC
- Metadata Storage: IPFS for decentralized storage of token metadata
- API Integration: PolygonScan API for efficient token enumeration
- Wallet Connection: MetaMask integration for viewing owned tokens
Role-Based Permissions
The SmartLaw Tokens contract implements a sophisticated role system with the following roles:
Superuser
Complete access to all contract functionality
Minter
Can mint new tokens into circulation
Caster
Can cast votes or make decisions
Transferer
Can transfer tokens between accounts
Configurer
Can update contract configuration
Maintainer
Can perform maintenance operations
Creator
Can create new token types
Limiter
Can set supply limits on tokens
Burner
Can burn or destroy tokens
Destroyer
Can permanently remove token types
Oracle
Can provide external data to the contract
Part of the Evidencer Ecosystem
SmartLaw Tokens is one component of the larger Evidencer ecosystem, which includes:
- FreeWeb3 Hub: Decentralized application portal for users
- CCIP Messaging: Cross-chain communication between legal processes
- CID Storage: Decentralized storage of legal documents and evidence
- Evidencer Forms: Legal document creation and submission
- IPFS Encryption: Private, encrypted storage for sensitive legal documents
- Legal Precedent Oracle: On-chain access to legal precedents and standards
- Disaster Reporting: Decentralized disaster reporting and claims