Commit a266b32d authored by John Doe's avatar John Doe
Browse files

monorepo.

parent 85ec022c
# momiji-public-monorepo
# momiji-monorepo
This is a monorepo for Momiji. It contains all parts used in the Offshift v2 stack.
`frontend` contains the frontend code for the Momiji web app.
`node` contains the backend code for the P2P network and proving architecture.
Found within these folders is the `momiji-helpers` package, which also contains the ZK circuits and contracts used in the protocol.
\ No newline at end of file
module.exports = {
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
plugins: ['react-refresh'],
rules: {
'react-refresh/only-export-components': 'warn',
},
}
# Logs
logs
*.log
npm-debug.log*
yarn-debwug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
dist
dist-ssr
*.local
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
# contract artifacts
artifacts
typechain-types
solidity-files-cache.json
\ No newline at end of file
[submodule "momiji-helpers"]
path = momiji-helpers
url = http://open.offshift.io/greybeard/momiji-helpers.git
# momiji frontend
\ No newline at end of file
<!DOCTYPE html>
<html lang="en" class="bg-back">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/png" href="/logo.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta property="og:title" content="Offshift Momiji">
<meta property="og:description" content="Confidential assets on Ethereum L1">
<meta property="og:image" content="/momijicard.png">
<title>Offshift | app</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
\ No newline at end of file
node_modules
.env
coverage
coverage.json
typechain
#Hardhat files
cache
artifacts
#node_modules
node_modules
package-lock.json
#ignore JS
*.js
typechain-types-ignore
\ No newline at end of file
# momiji-ts
\ No newline at end of file
[package]
name = "helpers"
type = "lib"
authors = [""]
compiler_version = ">=0.19.2"
[dependencies]
\ No newline at end of file
This diff is collapsed.
/* Autogenerated file, do not edit! */
/* eslint-disable */
import { Noir, InputMap, CompiledCircuit, ForeignCallHandler } from "@noir-lang/noir_js"
export type { ForeignCallHandler } from "@noir-lang/noir_js"
export type Field = string;
export const pedersen_left_right_circuit: CompiledCircuit = {"abi":{"parameters":[{"name":"left","type":{"kind":"field"},"visibility":"private"},{"name":"right","type":{"kind":"field"},"visibility":"private"}],"param_witnesses":{"left":[{"start":0,"end":1}],"right":[{"start":1,"end":2}]},"return_type":{"abi_type":{"kind":"field"},"visibility":"private"},"return_witnesses":[2]},"bytecode":"H4sIAAAAAAAA/22KQQoAQAgCc0/7/wdHRRYRDYiiQpLnAnP4Z1coex1/WR8cee6NAftGOOF1AAAA"};
export async function pedersen_left_right(left: Field, right: Field, foreignCallHandler?: ForeignCallHandler): Promise<Field> {
const program = new Noir(pedersen_left_right_circuit);
const args: InputMap = { left, right };
const { returnValue } = await program.execute(args, foreignCallHandler);
return returnValue as Field;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment