meta-introspector / mina-snarky-o1js-zkapp-introspector

zkIntrospector: A Self-Aware zkApp Framework for Gödel Number Reflection
GNU Affero General Public License v3.0
3 stars 1 forks source link

The o1js GitHub Action is used to deploy Mina smart contracts and store the blockchain data in a Git repository. Here's a breakdown of the process: #13

Open jmikedupont2 opened 2 months ago

jmikedupont2 commented 2 months ago

The o1js GitHub Action is used to deploy Mina smart contracts and store the blockchain data in a Git repository. Here's a breakdown of the process:

Initialization: Set up the o1js library and initialize a local instance of the Mina blockchain for testing purposes. This can be done with the option to enable or disable proofs. Key Generation: Define the necessary private and public keys for both the deployer and sender accounts. Generate a new public/private key pair, with the public key representing the address where the smart contract will be deployed. Smart Contract Deployment: Use the o1js library to deploy the Mina smart contract to the local blockchain instance. Blockchain Data Storage: Store the blockchain data, including the deployed smart contract, in a Git repository. This can be achieved by committing the blockchain state to the repository.

Key Components

o1js-bindings repository: Provides bindings for o1js to lower layers of the proof system and the Mina transaction logic. mina-signer package: Used to hash and sign transactions. o1js framework: A TypeScript framework for building zkApps on Mina.

GitHub Action Workflow

  1. Initialize the local Mina blockchain instance.
  2. Generate private and public keys for deployer and sender accounts.
  3. Deploy the Mina smart contract using o1js.
  4. Commit the blockchain state, including the deployed smart contract, to the Git repository.

Note**: The exact implementation details may vary depending on the specific requirements and configurations used. The provided information focuses on the high-level overview of the process and key components involved.