This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 { |