Access control may require vast amount of data. For example, sanction lists. L2s enables data publishing on-chain at scale.
PROBLEMS
What Problems Are We Solving?
Why Do These Problems Exist?
SOLUTIONS
Background / Context
What Are The Solutions?
Whatβs Implemented for the Hackathon?
(1) MASS DATA PUBLISHING: Layer 1 vs. Layer 2 benchmark
See the screencap for the benchmark of different layer 2 blockchains.
We deployed the sanction lists on different layer 2s--Scroll, Base (OP Stack), Polygon, and Filecoin EVM--and tested each chain's maximum batch transaction size.
(2) SUBSCRIPTION PAYMENT
To take advantage of the lower gas fees on layer 2s, we implemented a modified version of EIP-5643 (Subscription NFTs).
To allow subscribers to see their subscription, we decide to mint a standard ERC721 to subscriber wallets
To avoid confusion, each user can only own 1 token, and the tokenID will be irrelevant
Expiry needs to be tracked
Sanctioned wallet addresses are not allowed. Gated by using Molecule AML with US and EU sanction lists checked
The subscription contract is implemented as a Molecule smart contract so it can be composable with other controllers