Skip to content

Instantly share code, notes, and snippets.

@kyzooghost
kyzooghost / attestation.txt
Created March 27, 2021 12:33
zkparty phase2 tusted setup MPC contribution summary
{
"ceremony": "zk_transaction_4_1",
"ceremonyId": "doQRCJe1WsgoamIs0LGJ",
"time": "2021-03-27T12:33:55.849Z",
"contributionNumber": 67,
"hash": "976ec5cf 465e1abb 028c87e4 edddecdc\n 63706a68 759af8f5 55fdb703 107ec351\n a5721c92 8a8c4227 97b1d3a6 3c168e71\n 0cfad780 16788504 4b6748db 3b1884eb\n"
}
@kyzooghost
kyzooghost / attestation.txt
Created March 27, 2021 12:50
zkparty phase2 tusted setup MPC contribution summary
{
"ceremony": "zk_transaction_4_2",
"ceremonyId": "NgqtzZuK1la2dU1LiFCN",
"time": "2021-03-27T12:50:04.104Z",
"contributionNumber": 66,
"hash": "1fc1120c 38f1f7b6 607a8090 20a73ae8\n 7263e2aa eab1d957 f99ca30b 5105e1e5\n 47f6fc38 772f6b04 0cae8dcb 837ba3a6\n 4888c8cd f3f349b5 f09d4322 52dd58cd\n"
}
@kyzooghost
kyzooghost / attestation.txt
Created March 27, 2021 12:54
zkparty phase2 tusted setup MPC contribution summary
{
"ceremony": "zk_transaction_4_3",
"ceremonyId": "8i9TsuUmSnqh5cLIQoFd",
"time": "2021-03-27T12:54:41.334Z",
"contributionNumber": 65,
"hash": "0a24c9ff 8b334d70 335a8ef3 4d641847\n 03b9e8d1 fb36b3ae 7921c366 244d25d8\n 86bb90a4 c05306e4 cdab5695 9f479eaa\n 8593b91b eec4ff44 fa76c203 8c79019a\n"
}
@kyzooghost
kyzooghost / attestation.txt
Created March 27, 2021 12:59
zkparty phase2 tusted setup MPC contribution summary
{
"ceremony": "zk_transaction_4_4",
"ceremonyId": "xN7193Ldf8i0L2SfG8X4",
"time": "2021-03-27T12:59:37.026Z",
"contributionNumber": 65,
"hash": "adc3fe98 b47fa5b8 dad4a1c8 d2704d7b\n cf6be0a9 ed35e1ff 9bad7801 0c684e7b\n b5602a32 80e7d779 2fb96194 8ef54e4a\n b77dae3b 87848144 e10446b9 215d1687\n"
}
@kyzooghost
kyzooghost / attestation.txt
Created March 27, 2021 12:59
ZKOPRU trusted setup attestation
I contributed to the ZKOPRU Trusted Setup Multi-Party Ceremony.
The following are my contribution signatures:
Circuit: zk_transaction_1_2
Contributor # 88
Hash: b51bc84d 845f1445 91474b54 b4c03b65
e81835af 39231423 8163ea7d d34d5d4e
f627fe9b 22ae1087 4d98dc6c d37e744d
33faf531 6a27ceb1 71b48bc3 5ac11503
address internal constant SENTINEL_OWNERS = address(0x1);
mapping(address => address) internal owners;
uint256 internal ownerCount;
solidity;
address internal constant SENTINEL_OWNERS = address(0x1);
mapping(address => address) internal owners;
uint256 internal ownerCount;
pragma solidity >=0.7.0 <0.9.0;
contract SignatureDecoder {
/// @param pos which signature to read.
/// @param signatures concatenated signatures.
function signatureSplit(bytes memory signatures, uint256 pos)
internal
pure
returns (
uint8 v,
@kyzooghost
kyzooghost / 1-3-9.rs
Created March 10, 2022 21:17
Write a program that takes from standard input an expression without left parentheses and prints the equivalent infix expression with the parentheses inserted
#![allow(non_snake_case)]
#![allow(non_camel_case_types)]
// 1.3.9
// Write a program that takes from standard input an expression without left parentheses and prints the equivalent infix expression with the parentheses inserted.
// For example, given the input: 1 + 2 ) * 3 - 4 ) * 5 - 6 ) ) )
// Your program should print ( ( 1 + 2 ) * ( ( 3 -4 ) * ( 5 - 6 ) ) )
trait Stack<T> {
fn size(&self) -> usize;
@kyzooghost
kyzooghost / a.js
Created January 18, 2024 10:24
Contract creation
const transactionParameters = {
gasPrice: '0x174876E800', // 100 gwei gas price
gas: '0x30d40', // 200,000 gas limit
to: null, // KingFrogs contract address
from: ethereum.selectedAddress, // must match user's active address.
data: "0x60806040523480156200001157600080fd5b506040518060400160405280600281526020017f48690000000000000000000000000000000000000000000000000000000000008152506040518060400160405280600281526020017f486900000000000000000000000000000000000000000000000000000000000081525081600390816200008f919062000324565b508060049081620000a1919062000324565b5050506200040b565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200012c57607f821691505b602082108103620001425762000141620000e4565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905