2 stable releases

1.7.1 Jun 29, 2021
1.3.0 Aug 2, 2020

#2 in #plasma

Apache-2.0

315KB
7K SLoC

Plasma Module

The Plasma module provides functionality for handling layer2 dispute logics. This refer to: https://github.com/cryptoeconomicslab/ovm-contracts/blob/master/contracts/UniversalAdjudicationContract.sol

Overview

Plasma Module is a module that is responsible for processing specific to Plasma. It calls the OVM Module and the specified smart contract function. The Plasma Module has one "Commitment" and "Deposit" address per application. These are each defined by decl_child_storage. decl_child_storage! is a macro that implements DB in SubTrie. This sets AccountId as the key value. This is like a contract address. Specifically, implements with reference to AccountDb of contract module.

This is modularized Commitment, Deposit and CompiledPredicate contracts in the Ethereum.

Dependencies

~10–20MB
~274K SLoC