Mansoor Buttmansoor-eth.hashnode.dev·Dec 29, 2024Learning Dark Arts of Yul Part IIReading a Slot in Yul Lets start with a Coding Example contract offsetAndShifting{ uint128 public a = 22; uint96 public b =15; uint16 public c = 8; uint8 public d = 1; function readValueBySlot(uint256 slot) external view return(b...Mastering the EVMSolidity
Alex Kitdev.kit.eco·Dec 25, 2024Blockchain-as-a-BackendThis article isn’t about cryptocurrency or decentralized finance. Instead, we’ll explore public EVM blockchains and how they can be used in your next project, depending on your specific needs and goals. I’ll delve into the pros, cons, and practical e...154 readsBlockchain
Mansoor Buttmansoor-eth.hashnode.dev·Dec 21, 2024Learning the Dark Arts of Yul ( Part I )Introduction Yul is an intermediate language that can be used with Solidity or as a standalone language . It is particularly useful for writing optimized Smart Contract Lets look at some Coding Examples { // Declare variables without specifying t...Mastering the EVMSolidity
Lilian Cariourasengansec.hashnode.dev·Dec 19, 2024TON Virtual Machine / Func Learninghttps://docs.ton.org/learn/tvm-instructions/tvm-overview What are messages and what are transactions? ✉️ Message - the things that happens in between two contracts. It carries a little bit of coins and arbitrary data to a contract address. 💎 Transa...tondev
Mansoor Buttmansoor-eth.hashnode.dev·Nov 28, 2024Demystifying Memory in EVM (Part II)Alright Let’s Continue from where we left , Previous One : Demystifying Memory in EVM (Part I) Memory Initialization When a contract is executed , the EVM initializes a free memory pointer to 0×80. This is done to provide some space for stack operati...10 likesMastering the EVMSolidity
Mansoor Buttmansoor-eth.hashnode.dev·Nov 26, 2024Demystifying Memory in EVM (Part I)Let’s look at the architecture of the Memory in EVM. Scratch Space : Ephemeral space to write values ( used for instance by the sha3 opcode) Free Memory Pointer : It contains the address of the last byte accessed in memory . Memory never gets clean...Mastering the EVMSolidity
Mansoor Buttmansoor-eth.hashnode.dev·Nov 23, 2024Storing Mappings in Solidity's StorageOkay let’s first look at the code contract Demo { uint256 a = 0x1a01; // Slot 0 uint256 b = 0x2a01; // Slot 1 mapping(uint => uint) c; // Slot 2 uint256 d = 0x5a01; // Sot 3 constructor(){ c[10] = 0xfe3f; c[100] =...Solidity
Mansoor Buttmansoor-eth.hashnode.dev·Nov 21, 2024Storing Dynamic Type in SolidityWhen Storing Dynamic type data , We don’t explicitly store the data in the next immediate slot, instead we only store the address of the slot where the element of that index is , In simpler words we are basically storing the “Pointer” to the actual a...Mastering the EVMSmart Contracts
Yusuf RoqibforCrossFi Africa Blogcrossfiafrica.hashnode.dev·Nov 15, 2024How to Claim CrossFi Test Tokens on CrossFi TestnetThe CrossFi Testnet serves as a practical environment for developers and users within the CrossFi ecosystem. It replicates mainnet conditions closely, giving developers a reliable environment to explore various platform functionalities, from account ...10 likes·117 readsprogramming
Diluk Angelodilukangelo.dev·Oct 31, 2024Building Secure Crypto Wallets with AWS KMSThe Challenge: Securing Cryptocurrency Withdrawals When one of our clients approached us with a cryptocurrency withdrawal system challenge, they emphasized a critical requirement: developers should never have direct access to wallet private keys, esp...7 likes·53 readsAWS