Skip to content

Instantly share code, notes, and snippets.

View jimmychu0807's full-sized avatar
🎯
Focusing

Jimmy Chu jimmychu0807

🎯
Focusing
View GitHub Profile
[17:15:05 ~/src/personal/courses/epf/cl-grandine/grandine-zk/zkvm/guest/pico (jc/dev)] RUST_LOG=info cargo pico build
Building ELF binary...
rustc version: /Users/jimmychu/.rustup/toolchains/nightly-2024-11-27-aarch64-apple-darwin/bin/rustc
Building guest package: cargo +nightly-2024-11-27 build --release --target riscv32im-risc0-zkvm-elf -Z build-std=alloc,core,proc_macro,panic_abort,std -Z build-std-features=compiler-builtins-mem
Command: "cargo +nightly-2024-11-27 build --release --target riscv32im-risc0-zkvm-elf -Z build-std=alloc,core,proc_macro,panic_abort,std -Z build-std-features=compiler-builtins-mem --manifest-path /Users/jimmychu/src/personal/courses/epf/cl-grandine/grandine-zk/zkvm/guest/pico/Cargo.toml --target-dir /Users/jimmychu/src/personal/courses/epf/cl-grandine/grandine-zk/target"
Start to execute command...
[pico] warning: extern crate `alloc` is unused in crate `std_ext`
[pico]   |
[pico]   = help: remove the dependency or add `use alloc as _;` to the crate root
@jimmychu0807
jimmychu0807 / semaphore-v4-ceremony_attestation.log
Created June 16, 2024 08:49
Attestation for Semaphore V4 Ceremony MPC Phase 2 Trusted Setup ceremony
Hey, I'm jimmychu0807-898091 and I have contributed to the Semaphore V4 Ceremony.
The following are my contribution signatures:
Circuit # 1 (semaphorev4-1)
Contributor # 136
Contribution Hash:
02b0bc08 ee92a2a8 c030b5fb c2059263
36c4f5c9 210366d3 044c958d 64fea3f9
88a4debe a73b7ee5 03e8c38a 1c2bc722
42b93baa 956c6ca4 e148becf 30491f59
@jimmychu0807
jimmychu0807 / self-signed-certificate-with-custom-ca.md
Created November 3, 2020 06:04 — forked from fntlnz/self-signed-certificate-with-custom-ca.md
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
@jimmychu0807
jimmychu0807 / Markdium-javascript.js
Created March 4, 2020 12:06
Markdium-用 Substrate Front-end Template θΌ•ι¬†ζ‰“ι€ δ½ ηš„ React 應用
const accountPair = keyring.getPair(accountAddress);
@jimmychu0807
jimmychu0807 / Markdium-Shell.bash
Created March 4, 2020 12:06
Markdium-用 Substrate Front-end Template θΌ•ι¬†ζ‰“ι€ δ½ ηš„ React 應用
target/release/node-template purge-chain --dev
@jimmychu0807
jimmychu0807 / Markdium-javascript.js
Created March 4, 2020 12:06
Markdium-用 Substrate Front-end Template θΌ•ι¬†ζ‰“ι€ δ½ ηš„ React 應用
//...
import { SubstrateContextProvider, useSubstrate } from './substrate-lib';
import { DeveloperConsole } from './substrate-lib/components';
//...
function Main() {
const [accountAddress, setAccountAddress] = useState(null);
const { apiState, keyring, keyringState } = useSubstrate();
const accountPair =
accountAddress &&
@jimmychu0807
jimmychu0807 / Markdium-javascript.js
Created March 4, 2020 12:06
Markdium-用 Substrate Front-end Template θΌ•ι¬†ζ‰“ι€ δ½ ηš„ React 應用
api.query.<pallet_名字>.<pallet ε­˜ε„²εε­—>(ε›žθͺΏε‡½ζ•Έ)
@jimmychu0807
jimmychu0807 / Markdium-javascript.js
Created March 4, 2020 12:06
Markdium-用 Substrate Front-end Template θΌ•ι¬†ζ‰“ι€ δ½ ηš„ React 應用
const val = await api.query.templateModule.something();
@jimmychu0807
jimmychu0807 / Markdium-JSONLD.jsonld
Created March 4, 2020 12:06
Markdium-用 Substrate Front-end Template θΌ•ι¬†ζ‰“ι€ δ½ ηš„ React 應用
{
...,
"CUSTOM_TYPES": {
"Price": {
"dollars": "u32",
"cents": "u32",
"currency": "Vec"
},
}
}
@jimmychu0807
jimmychu0807 / Markdium-rust.rs
Created March 4, 2020 12:06
Markdium-用 Substrate Front-end Template θΌ•ι¬†ζ‰“ι€ δ½ ηš„ React 應用
// This module's storage items.
decl_storage! {
trait Store for Module as TemplateModule {
Something get(fn something): Option;
}
}