Skip to content

Instantly share code, notes, and snippets.

View ml-sudocode's full-sized avatar

ml_sudo ml-sudocode

View GitHub Profile
@ml-sudocode
ml-sudocode / gist:e93911a4853b2e98d4fa8c1915d8265a
Created September 6, 2025 04:15
Wallet with Register-Invoice-Pay steps
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.9.0;
contract InvoiceWallet {
address owner;
mapping(address => mapping(uint256 => bool)) invoices;
mapping(address => bool) registered;
constructor(address _owner) {
owner = _owner;
@ml-sudocode
ml-sudocode / privacy-pools-ceremony_attestation.log
Created February 20, 2025 00:03
Attestation for Privacy Pools Ceremony MPC Phase 2 Trusted Setup ceremony
Hey, I'm ml-sudocode-29868543 and I have contributed to the Privacy Pools Ceremony.
The following are my contribution signatures:
Circuit # 1 (withdraw)
Contributor # 21
Contribution Hash: 1e4fe7a8 a71e626c 8b77f049 f1d56fcf
1341ff26 c9366e66 f840b508 e0765b1d
88572072 8525d0ce 965c14e4 af6609ea
2943986d fc1884ae 7847d607 9ad2bc58
@ml-sudocode
ml-sudocode / contracts...Coin.sol
Created August 21, 2022 04:37
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.4;
contract Coin {
// The keyword "public" makes variables
// accessible from other contracts
address public minter;
mapping (address => uint) public balances;
// Events allow clients to react to specific
@ml-sudocode
ml-sudocode / contracts...Faucet.sol
Created August 21, 2022 04:36
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// Version of Solidity compiler this program was written for
pragma solidity 0.6.4;
// Our first contract is a faucet!
contract Faucet {
// Accept any incoming amount
receive() external payable {}
// Give out ether to anyone who asks
function withdraw(uint withdraw_amount) public {