![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
github.com/b-j-roberts/MyBlockchains/naive-blockchain/naive-cryptocurrency-l2
This project serves as a learning exercise, practice, and a simple example of an EVM compatible L2 cryptocurrency based on the concept of using zk proofs to verify L2 transaction data and state transitions on L1.
A minimal Geth fork is used to provide EVM compatibility and tons of useful cryptocurrency primitives, such as RPC, Blockchain, state DB, ...
The L2 Blockchain uses geth functionality to run the execution layer thru a Sequencer node. The network relies on a Clique base POA consensus, where the sequencer node(s) act as the authority agents. Other nodes can send transactions to RPC nodes or the seuqencer nodes to add them to the mempool.
Permissioned POA Agent Runs execution, posts batch tx to l1 contract,
b-j-roberts( ~/workspace/blockchain/my-chains/eth-private-network @ master ) ☯ docker build -t l1-private -f Dockerfile . docker run -it brandonjroberts/eth-private-miner:latest
contracts, go, remix, scripts, test, make/build? npm install
Launch node
Fork, Minimal, Local ref in other code
Starting, Account gen, ....
TODO: --txpool.globalslots
Full clean: make clean ./scripts/clean-all.sh cd ../../eth-private-network/ && make clean && cd ../naive-blockchain/naive-cryptocurrency-l2/
Full Run: ./scripts/start-l1-private-network.sh make all make deploy-private-l1 ./scripts/start-sequencer-overwrite.sh
./scripts/start-prover.sh
./scripts/start-rpc-overwrite.sh
Watch UI / state : ./scripts/smart-contract-watch.sh cd ~/workspace/blockchain/tools/explorer && npm start
send txs cat ~/naive-sequencer-data/genesis.json geth attach ~/naive-sequencer-data/naive-sequencer.ipc eth.sendTransaction({from: "0x1afed87524e19ccae70f34517c328bac5f636e41", to: "06eba974246f46d6b8421fd5e0b1b5cafbeb0710", value: 100000})
make launch-miner-local make clean make all make deploy-private-l1
L1_CONTRACT_ADDRESS= make run-sequencer make watch-smart-contract L1_CONTRACT_ADDRESS= make run-prover
make docker-build make docker-run-miner make docker-build make contracts make deploy-private-l1
L1_CONTRACT_ADDRESS= make run-smart-contract-metrics L1_CONTRACT_ADDRESS= make docker-run-sequencer make watch-smart-contract L1_CONTRACT_ADDRESS= make docker-run-prover
geth attach --exec 'eth.sendTransaction({from: "46b823cd45ba0eb493ddcdf4591799994535c1bc", to: "06eba974246f46d6b8421fd5e0b1b5cafbeb0710", value: 100000})' ~/naive-sequencer-data/naive-sequencer.ipc docker exec -it naive-sequencer /app/go-ethereum/build/bin/geth attach --exec 'eth.sendTransaction({from: "0x693A08cC02422548624B8161Ae581DE27AfA8B4b", to: "06eba974246f46d6b8421fd5e0b1b5cafbeb0710", value: 100000})' /sequencer-data/naive-sequencer.ipc
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.