Skip to content

Instantly share code, notes, and snippets.

View developeruche's full-sized avatar
🤓
Building

Developer Uche developeruche

🤓
Building
View GitHub Profile
//! [EIP-712](https://eips.ethereum.org/EIPS/eip-712) is a standard for hashing
//! and signing typed structured data.
//!
//! The implementation of the domain separator was designed to be as efficient
//! as possible while still properly updating the chain id to protect against
//! replay attacks on an eventual fork of the chain.
//!
//! NOTE: This contract implements the version of the encoding known as "v4", as
//! implemented by the JSON RPC method [`eth_signTypedDataV4`] in MetaMask.
//!
contract EIP712 {
bytes32 private constant TYPE_HASH =
keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)");
bytes32 private immutable _cachedDomainSeparator;
uint256 private immutable _cachedChainId;
address private immutable _cachedThis;
bytes32 private immutable _hashedName;
bytes32 private immutable _hashedVersion;
@developeruche
developeruche / anon-aadhaar-v2-trusted-setup-ceremony_attestation.log
Created June 16, 2024 22:17
Attestation for Anon Aadhaar V2 Trusted Setup Ceremony MPC Phase 2 Trusted Setup ceremony
Hey, I'm developeruche-69772615 and I have contributed to the Anon Aadhaar V2 Trusted Setup Ceremony.
The following are my contribution signatures:
Circuit # 1 (aadhaarverifier)
Contributor # 93
Contribution Hash: 1b922812 23059491 835817ed a6f9fe3a
53aad8bd a2dcc45b 1971e11a aa8122a7
7afc19ef c5521ee6 e1f3712e 3c4ddef8
c4916088 594452ce 135051d2 cee67853
@developeruche
developeruche / semaphore-v4-ceremony_attestation.log
Created June 16, 2024 21:40
Attestation for Semaphore V4 Ceremony MPC Phase 2 Trusted Setup ceremony
Hey, I'm developeruche-69772615 and I have contributed to the Semaphore V4 Ceremony.
The following are my contribution signatures:
Circuit # 1 (semaphorev4-1)
Contributor # 142
Contribution Hash: 7575c4f3 5f715385 507e4a34 c8e264f1
3cc2f54d a7fc5a9a e7343081 4e100616
9003a885 3370ee47 2d365c1d 96cc99fa
bd24aaf3 28937cc0 0cb579b4 4af4edeb

Curriculum

Week 1: Introduction to Python and Programming Fundamentals

  • Topics:
    • Introduction to Python: History, advantages for machine learning
    • Setting Up Your Environment: Python installation, IDE selection (e.g., PyCharm, Visual Studio Code)
    • Basic Programming Concepts: Variables, data types (int, float, str, bool), operators (arithmetic, logical, comparison), input/output (print(), input())
    • Control Flow: Conditional statements (if-else, elif), loops (for, while), break and continue statements
  • Assessment:
@developeruche
developeruche / subscribtion.log.txt
Created April 22, 2024 11:31
Log from Alloy event subscription
af89517ade } }, block_hash: Some(0x2e3d3b9c7e7cb4be6a47e87fbbe8783303df4f034f185fce3d37d5656769c0ef), block_number: Some(19710643), block_timestamp: None, transaction_hash: Some(0x9b0d193b2f4540b1d5bf72e207d63304fc1a548dd6922474c3d48d364db5317a), transaction_index: Some(0), log_index: Some(8), removed: false }
Uniswap token logs: Log { inner: Log { address: 0x9e22b4f836a461ddc7765e5fad693688e76e6069, data: LogData { topics: [0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef, 0x000000000000000000000000cf5109bfe92d627e4eb43d6405b2de6793c90f3e, 0x0000000000000000000000000b98dd25600bb9a521b1d54c03cf303028c0503d], data: 0x00000000000000000000000000000000000000000000000074781f6f07fcff40 } }, block_hash: Some(0x2e3d3b9c7e7cb4be6a47e87fbbe8783303df4f034f185fce3d37d5656769c0ef), block_number: Some(19710643), block_timestamp: None, transaction_hash: Some(0x9b0d193b2f4540b1d5bf72e207d63304fc1a548dd6922474c3d48d364db5317a), transaction_index: Some(0), log_index: Some(9), removed: false }
Uniswap token lo
@developeruche
developeruche / INahmiiStandardERC721.sol
Created July 12, 2023 19:12
This is the bridge contract
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import {
IERC721Enumerable
} from "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
enum Existence {
Transient,
Permanent
import {ethers} from "hardhat";
import ethSigUtil from 'eth-sig-util';
import axios from 'axios';
const EIP712Domain = [
{ name: 'name', type: 'string' },
{ name: 'version', type: 'string' },
{ name: 'chainId', type: 'uint256' },
0x42d2c5a3b4dc09930b8a5fd0741736424b213a78