Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cedarmist/rollups-and-channels
https://github.com/cedarmist/rollups-and-channels
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/cedarmist/rollups-and-channels
- Owner: CedarMist
- Created: 2023-11-16T03:24:46.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2023-11-16T03:25:07.000Z (12 months ago)
- Last Synced: 2024-04-15T05:16:17.153Z (7 months ago)
- Language: Solidity
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rollups & Smart Channels
This repo provides an example of how a view calls to confidential contracts on Oasis Sapphire can be used to create rollups and state channels.
Using the [@oasis-protocol/sapphire-contracts](https://www.npmjs.com/package/@oasisprotocol/sapphire-contracts) library The contracts generates their own secrets which are used to either encrypt state that only they can access, or to sign state which can be independently verified.
While [@oasis-protocol/sapphire-hardhat](https://www.npmjs.com/package/@oasisprotocol/sapphire-hardhat) package makes testing easy with Hardhat, you also need to run a local [sapphire-dev](https://github.com/oasisprotocol/oasis-web3-gateway/pkgs/container/sapphire-dev) instance which supports the necessary EVM precompiles.
For your convenience there is a `Makefile` which uses Docker to keep everything neatly contained:
```
make sapphire-dev & # This will take a few minutes
make pnpm-install
make hardhat-compile
make hardhat-test
```