Skip to content

Instantly share code, notes, and snippets.

View ddbit's full-sized avatar
😀

ddbit ddbit

😀
View GitHub Profile
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
contract Performance {
address public owner;
mapping(bytes32 => uint256) public Indicator;
modifier onlyOwner() {
require(msg.sender == owner, "not owner");
_;
@ddbit
ddbit / 129b-shamir-shared-secret-lab.ipynb
Created February 19, 2025 14:54
129b - Shamir Shared Secret Lab
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ddbit
ddbit / 125-merkle-notebook.ipynb
Created February 6, 2025 14:55
125 - Merkle notebook
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ddbit
ddbit / 110-pgpy.ipynb
Last active January 23, 2025 14:32
110 PGPy.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ddbit
ddbit / 095-ecdsa.ipynb
Created January 9, 2025 16:37
095 - ecdsa.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ddbit
ddbit / 087-dsa.ipynb
Created January 9, 2025 15:15
087 - dsa.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ddbit
ddbit / 03_aes_ecb.ipynb
Created December 19, 2024 15:33
03_AES_ECB.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ddbit
ddbit / 02_xor_encryption.ipynb
Created December 12, 2024 16:31
02_xor_encryption.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ddbit
ddbit / 01_basi_python.ipynb
Created December 12, 2024 13:49
01_basi_python.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
//SPDX-License-Identifier: UNLICENSED
// Solidity files have to start with this pragma.
// It will be used by the Solidity compiler to validate its version.
pragma solidity ^0.8.0;
// We import this library to be able to use console.log
import "hardhat/console.sol";
// [+] step1: deploy MutDeployer with CREATE2 at Ox111...
// [+] step5: re-create MutDeployer at 0x111... (Ox111... nonce == 1)