If you want to access Ethereum through Python, you can see from Ethereum’s official Github that there are two modules available: web3.py and pyethereum. As far as my current understanding is concerned, the difference between the two is that web3.py is mainly used as a client for external access to Ethereum, that is to say, […]
Tag: ethereum
Implementation of the Ethereum blockchain ERC-721 protocol (NFT token standard)
1. What is the ERC-721 standard ERC-721 is a standard for NFT (non-fungible tokens) on the Ethereum blockchain. It is a template or format that other developers follow to create unique tokens that represent digital assets, and Each ERC-721 token is unique. Using a unified standard can make the contract code simpler and more reusable. […]
Install the Ethereum compilation environment and set contract functions under Ubuntu 16.04 (support geth 1.6 and solc 0.4.16 and above)
Since I don’t have an Apple computer, I use the Linux environment to operate here, and Windows is also possible, but I haven’t tried it, and I have read many articles, saying that I will encounter many problems. This paper addresses the following issues: 1. After geth is upgraded to version 1.6, it no longer […]
Ethereum: Create a secure multi-signature wallet and advanced settings
Create a multi-signature wallet in Mist The Mist Ethereum wallet has an option to use a multi-signature wallet to make the balance in the wallet more secure. The advantage of using a multi-signature wallet is that it requires the approval of multiple accounts to be able to withdraw large amounts of funds from the balance. […]
web3 connects to Ethereum, Xverse, and UniSat wallets to obtain signatures
Connect to Ethereum Here is my wallet connection using Metamask MetaMask SDK Preparation Install SDK yarn add @metamask/sdk // or npm install @metamask/sdk Install ethers (I directly import the JS file here) <!– will export a global variable: ethers –> <script src=”//i2.wp.com/cdn.ethers.io/scripts/ethers-v4.min.js” charset=”utf-8″ type=”text/javascript”> </script> Writing logic // 1. Import the SDK here according to […]
Solidity–In-depth study of Ethereum EVM
Flowchart Account Account Type Creation Cost Transaction Initiation Usage Scenario Function External Account (Controlled by the owner of the private key) Creating an account is free You can initiate transactions independently Only ETH and tokens can be carried out between all external accounts Transaction 1. Accept, hold and send ETH and token 2. Interact with […]
Ethereum node discovery protocol discV4
The protocol uses a Kademlia-like Distributed Hash Table (DHT) for storing information about Ethereum nodes. The Kademlia structure was chosen because it is an efficient way to organize a distributed node index and has a low-diameter topology. In this protocol, nodes maintain network topology in a distributed manner by storing node information in buckets with […]
Android creates an Ethereum wallet
Create an Ethereum HD wallet HD Wallet Hierarchical Deterministic Wallet Let me briefly introduce the principle and composition of the wallet: Each wallet account contains a key pair, namely private key and public key. The private key (k) is a number, usually chosen at random. With the private key, we can use the one-way encryption […]
[Ethereum source code go-ethereum reading] accounts/keystore/account_cache.go
// Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // // The go-ethereum library is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, […]
[Ethereum source code go-ethereum reading] accounts/external/backend.go
// Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // // The go-ethereum library is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, […]