Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Asterisc support guide #1189

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Make sure that you have correctly hooked `direnv` into your shell by modifying y
If you haven't edited a config file then you probably haven't configured `direnv` properly (and things might not work later).
</Callout>

## Get access to a sepolia node
## Get access to a Sepolia node

You'll be deploying a OP Stack Rollup chain that uses a Layer 1 blockchain to host and order transaction data.
The OP Stack Rollups were designed to use EVM Equivalent blockchains like Ethereum, OP Mainnet, or standard Ethereum testnets as their L1 chains.
Expand Down
2 changes: 1 addition & 1 deletion pages/builders/node-operators/tutorials.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ This section provides information on various node operations. It covers running

<Card title="Building a node from source" href="/builders/node-operators/tutorials/node-from-source" />

<Card title="Running an op sepolia node from source" href="/builders/node-operators/tutorials/testnet" />
<Card title="Running an OP Sepolia node from source" href="/builders/node-operators/tutorials/testnet" />
</Cards>
2 changes: 2 additions & 0 deletions pages/stack/fault-proofs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ Documentation covering Cannon, Challenger, Explainer, Fp Components, Fp Security
<Card title="Fault proofs Mainnet security" href="/stack/fault-proofs/fp-security" />

<Card title="Fault proof VM - MIPS.sol" href="/stack/fault-proofs/mips" />

<Card title="Asterisc" href="/stack/fault-proofs/asterisc" />
</Cards>
1 change: 1 addition & 0 deletions pages/stack/fault-proofs/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"explainer": "Fault proofs explainer",
"fp-components": "FP system components",
"cannon": "FPVM: Cannon",
"asterisc": "FPVM: Asterisc",
"challenger": "OP-Challenger",
"mips": "MIPS.sol",
"fp-security": "FP Mainnet security"
Expand Down
47 changes: 47 additions & 0 deletions pages/stack/fault-proofs/asterisc.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
title: Fault proof VM - Asterisc
lang: en-US
description: Learn about Asterisc
---

# Asterisc

Asterisc is an alternative implementation of the [fault-proof VM](/stack/fault-proofs/fp-components#fault-proof-virtual-machine). When combined with the a [fault proof program](/stack/fault-proofs/fp-components#fault-proof-program) like [Kona](https://github.com/anton-rs/kona), Asterisc is equivalent to Cannon + OP-Program. Asterisc uses a RISC-V architecture instead of MIPS, and Kona is written in Rust instead of Go.

Read more about fault-proofs in our [Fault-proof explainer](/stack/fault-proofs/explainer) and [Cannon documentation](/stack/fault-proofs/cannon#overview-of-offchain-cannon-components)

## Benefits over Cannon

[Cannon](https://github.com/ethereum-optimism/cannon/) offers similar functionality but has key differences:

* Cannon operates on a 32-bit MIPS architecture, whereas Asterisc uses RISC-V.
* Asterisc supports 64-bit operations and deterministic threading, making it more future-ready.

## How it works

Asterisc, when combined with fault proof program like Kona, enables parties to reach consensus on shared execution trace states. In cases of dispute, it identifies the diverging execution step. Commitments are generated for memory, registers, CSR, and VM states across the execution trace, with disputed steps emulated within the EVM to resolve inconsistencies.

## Getting started

Ready to dive in? Keep reading for a quick overview, or head over to the [Asterisc repo](https://github.com/ethereum-optimism/asterisc) for a complete walkthrough.

1. Read through the [additional repo docs](https://github.com/ethereum-optimism/asterisc/docs).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
1. Read through the [additional repo docs](https://github.com/ethereum-optimism/asterisc/docs).
1. Read through the [additional repo docs](https://github.com/ethereum-optimism/asterisc/tree/master/docs).

2. Use Foundry to compile the associated smart contracts.
3. Compile test binaries using the [`Makefile`](https://github.com/ethereum-optimism/asteriscblob/master/tests/go-tests/Makefile).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
3. Compile test binaries using the [`Makefile`](https://github.com/ethereum-optimism/asteriscblob/master/tests/go-tests/Makefile).
3. Compile test binaries using the [`Makefile`](https://github.com/ethereum-optimism/asterisc/blob/master/tests/go-tests/Makefile).

4. Execute `rvgo` tests to validate both on-chain and off-chain operations through RISC-V unit tests.

## FAQ

The following section highlights specific advantages that Asterisc provides over other fault-proof systems.

### Benefits over Cartesi

[Cartesi](https://github.com/cartesi/) provides RISC-V fraud-proofing for a full machine, including numerous additional features. However, this added complexity can introduce risks. Asterisc focuses on simplicity by running single-process executions with minimal system calls.

### Benefits over WebAssembly

Arbitrum's WebAssembly-based fraud-proofing leverages a business-source license and transformation to WAVM, limiting its general usability. In contrast, Asterisc is open-source under the MIT license, offering broader applicability.

## Contributing

Asterisc is designed to run Go programs for fraud-proofing optimistic rollups. Contributions that align with its goals of simplicity, minimalism, and compatibility are highly encouraged.
23 changes: 14 additions & 9 deletions words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ Allnodes
Allocs
allocs
ANDI
Ankr
Apeworx
Arweave
Asterisc
asterisc
authrpc
Badgeholder's
Badgeholders
Expand Down Expand Up @@ -49,6 +50,7 @@ Brotli
brotli
Callouts
callouts
Cartesi
CCIP
Celestia
Celestia's
Expand Down Expand Up @@ -148,7 +150,6 @@ holesky
IERC
IGNOREPRICE
ignoreprice
Immunefi
implicity
Inator
inator
Expand Down Expand Up @@ -197,7 +198,6 @@ minsuggestedpriorityfee
Mintable
Mintplex
MIPSEVM
Mitigations
Monitorism
Moralis
Mordor
Expand Down Expand Up @@ -292,8 +292,6 @@ Proxied
Proxyd
proxyd
pseudorandomly
Pyth
Pyth's
QRNG
Quicknode
quicknode
Expand Down Expand Up @@ -326,9 +324,6 @@ runbooks
RWAs
safedb
Schnorr
SEPOLIA
Sepolia
sepolia
seqnr
SEQUENCERHTTP
sequencerhttp
Expand Down Expand Up @@ -400,12 +395,22 @@ VMDEBUG
vmdebug
VMODULE
vmodule
voxel
Warpcast
WAVM
xlarge
XORI
xtensibility
ZKPs
ZKVM
Zora
zora
Sepolia
voxel
sepolia
SEPOLIA
Pyth
Pyth's
Ankr
Mitigations
Immunefi
Arbitrum's