Skip to content

Instantly share code, notes, and snippets.

View ChihChengLiang's full-sized avatar

Chih Cheng Liang ChihChengLiang

View GitHub Profile
Compiling gadgets v0.1.0 (/Users/liangcc/projects/repos/zkevm-circuits/gadgets)
Compiling bus-mapping v0.1.0 (/Users/liangcc/projects/repos/zkevm-circuits/bus-mapping)
Compiling zkevm-circuits v0.1.0 (/Users/liangcc/projects/repos/zkevm-circuits/zkevm-circuits)
Compiling integration-tests v0.1.0 (/Users/liangcc/projects/repos/zkevm-circuits/integration-tests)
Finished release [optimized] target(s) in 1m 05s
Running tests/circuits.rs (target/release/deps/circuits-2c11952d6a58b820)
[2022-09-22T14:46:58Z INFO circuits] test bytecode circuit, block number: 6
[2022-09-22T14:46:58Z INFO circuits] test evm circuit, block number: 6
[2022-09-22T14:46:58Z INFO circuits] test bytecode circuit, block number: 7
[2022-09-22T14:46:58Z INFO circuits] test copy circuit, block number: 8
@ChihChengLiang
ChihChengLiang / dummy_ceremony_attestation.txt
Created May 24, 2022 14:28
Attestation for Dummy Ceremony MPC Phase 2 Trusted Setup ceremony
Hey, I'm ChihChengLiang and I have contributed to the Dummy Ceremony MPC Phase2 Trusted Setup ceremony.
The following are my contribution signatures:
Circuit # 1 (multiplier_2)
Contributor # 5
Contribution Hash: 85ad5e1e 46a4ae82 6b404c6f debf5f5b
d1c0b4a3 0053d812 f18841ad 18e1e3e2
a061650f eb4d9a97 dc349664 d8aba623
c9bf2839 b6d4e4bf e5b1310e 25149c51
I contributed to the Semaphore Trusted Setup Multi-Party Ceremony.
The following are my contribution signatures:
Circuit: semaphore16
Contributor # 179
Hash: bde3ae91 4c1677ad 3e12404c 0bbebdca
e33e39aa 790a46c3 0b1013cc 1c4616b2
61084fc2 6400b410 c716094a 09c62d50
ea9dd4e2 8257ad4b 613521d2 ee7eb099
use crate::gates::gate_helpers::CellF;
use pairing::arithmetic::FieldExt;
use halo2::{
circuit::{Layouter, Region},
plonk::{Advice, Column, ConstraintSystem, Error, Selector},
poly::Rotation,
};
use std::marker::PhantomData;
use halo2::{
arithmetic::FieldExt,
circuit::{Chip, Layouter, SimpleFloorPlanner},
pasta::Fp,
plonk::{Circuit, ConstraintSystem, Error},
};
use pasta_curves::pallas;
pub const KECCAK_NUM_ROUNDS: usize = 24;
ROT = [
[0, 36, 3, 41, 18],
[1, 44, 10, 45, 2],
[62, 6, 43, 15, 61],
[28, 55, 25, 21, 56],
[27, 20, 39, 8, 14],
]
# OFFSETs = [[64 - i for i in row] for row in ROT]
In file included from /Users/liangcc/projects/repos/barretenberg/barretenberg/src/aztec/ecc/curves/bn254/scalar_multiplication/scalar_multiplication.cpp:1:
In file included from /Users/liangcc/projects/repos/barretenberg/barretenberg/src/aztec/ecc/curves/bn254/scalar_multiplication/./scalar_multiplication.hpp:4:
In file included from /Users/liangcc/projects/repos/barretenberg/barretenberg/src/aztec/ecc/curves/bn254/scalar_multiplication/../g1.hpp:3:
In file included from /Users/liangcc/projects/repos/barretenberg/barretenberg/src/aztec/ecc/curves/bn254/scalar_multiplication/../../../groups/group.hpp:55:
/Users/liangcc/projects/repos/barretenberg/barretenberg/src/aztec/ecc/curves/bn254/scalar_multiplication/../../../groups/group_impl_asm.tcc:107:30: error: unknown token in expression
__asm__ __volatile__("xorq %%r8, %%r8 \n\t"
^
<inline asm>:1:7: note: instantiated into assembly here
xorq %r8, %r8
RangeError: Invalid count value
at String.repeat (<anonymous>)
at ProgressPanel.tsx:89
at Jt (ProgressPanel.tsx:177)
at Zt (ProgressPanel.tsx:232)
at da (react-dom.production.min.js:154)
at Xa (react-dom.production.min.js:174)
at Is (react-dom.production.min.js:261)
at _u (react-dom.production.min.js:230)
at bu (react-dom.production.min.js:229)
@ChihChengLiang
ChihChengLiang / attestation.txt
Created March 26, 2021 09:41
zkparty phase2 tusted setup MPC contribution summary
{
"ceremony": "zk_transaction_1_1",
"ceremonyId": "hIfLWePJPn6ldES7OZjB",
"time": "2021-03-26T09:41:04.716Z",
"contributionNumber": 13,
"hash": "d8e7966f 652d4d0f 5a2fbcc1 9b0829d2\n 711861ec da441751 3982763f 9b619013\n ff66b43b 077a759f 3bb9b373 28b67019\n 0868c008 9c84bc42 e14ecd50 e5ac4e35\n"
}
{"compiler":{"version":"0.5.15+commit.6a57276f"},"language":"Solidity","output":{"abi":[{"constant":true,"inputs":[],"name":"getValue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setValue","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}],"devdoc":{"methods":{}},"userdoc":{"methods":{}}},"settings":{"compilationTarget":{"browser/SimpleStorage.sol":"SimpleStorage"},"evmVersion":"istanbul","libraries":{},"optimizer":{"enabled":true,"runs":200},"remappings":[]},"sources":{"browser/SimpleStorage.sol":{"keccak256":"0x8bad23348f0270d2001f3a8b42b45464d6bba7beaaacc12cfb9cc6c087d7f7a5","urls":["bzz-raw://9a4bc7bca166c7189646d3ad3bbf1b27ca8c72b21922af74c5e3f81422dc33df","dweb:/ipfs/QmSCNAvn5RMxTWHUC4ymvC484TBHVhn47g1qwyjtokhnzK"]}},"version":1}