Taking Smart Notes With Org-mode
  • About
  • Articles
  • Notes
  • Search
Home » Notes

区块链

August 4, 2021 · 1 min · Gray King
  • tags: 分布式共识,技术概念

Links to this note


    Sui

    TAGS: Blockchain

    September 11, 2023 · 1 min · Gray King

    Sign Message

    tags: Blockchain

    April 7, 2023 · 1 min · Gray King

    Decode input data of Ethereum

    tags: Ethereum,Blockchain,Tron source: https://ethereum.stackexchange.com/a/110498 const data = '0x7ff36ab50000000000000000000000000000000000000000000000bc18ba4144048bbab00000000000000000000000000000000000000000000000000000000000000080000000000000000000000000c0c5eb43e2df059e3be6e4fb0284c283caa5991900000000000000000000000000000000000000000000000000000000614d87a80000000000000000000000000000000000000000000000000000000000000002000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c00000000000000000000000008ba0619b1e7a582e0bce5bbe9843322c954c340'; ethers.utils.defaultAbiCoder.decode( ['uint256', 'address[]', 'address', 'uint256'], ethers.utils.hexDataSlice(data, 4) ) // gives: [e, ["0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c", "0x08ba0619b1e7A582E0BCe5BBE9843322C954C340"], "0xC0C5eb43E2dF059e3Be6E4fb0284C283CAa59919", e] (4) Online tools: Playground.

    February 3, 2023 · 1 min · Gray King

    Tron

    tags: Blockchain

    February 3, 2023 · 1 min · Gray King

    DeFi from Scratch

    tags: DeFi, Blockchain, Uniswap, Uniswap V3 I need derive price from decentralized exchanges, and I have finished some research about Uniswap v3. It’s brand new for me, and after that I want to share some ideas about DeFi, and I think it would be helpful for you to understand Uniswap and some other decentralized exchanges. DeFi from Scratch We exchange stuffs very often, and we can exchange tokens in a centralized exchange. For example, Alice owns some ETH, and Bob owns some DAI. Now, Alice want to swap some ETH for DAI, and Bob want to swap some DAI for ETH. How could they do? ...

    August 25, 2022 · 3 min · Gray King

    DeFi

    tags: Blockchain

    August 25, 2022 · 1 min · Gray King

    Uniswap

    tags: Blockchain,Ethereum,DeFi

    August 25, 2022 · 1 min · Gray King

    Non-Fungible Tokens vs. Fungible Tokens

    tags: Blockchain,Ethereum source: “Graphical Guide to Understanding Uniswap - EthHub.” Accessed August 23, 2022. https://docs.ethhub.io/guides/graphical-guide-for-understanding-uniswap/. ERC20 tokens are the most common type of token built on top of Ethereum. They are fungible in nature, meaning that there isn’t a distinction between individual tokens. For example, if I have 100 metal marbles in my hand that are all the same size and color, it doesn’t matter which one I give you. In the same way, if I have 100 of the same ERC20 token, it doesn’t matter which one I give you. This contrasts with ERC721 tokens which are non-fungible tokens (NFTs) such as cryptokitties. ...

    August 23, 2022 · 1 min · Gray King

    Move

    tags: Starcoin Web3 StarTrek,Blockchain,Smart contracts

    June 18, 2022 · 1 min · Gray King

    P2P

    tags: Starcoin Web3 StarTrek,Blockchain

    June 15, 2022 · 1 min · Gray King

    Addressable Merkle Tree(AMT)

    tags: Merkle tree,Blockchain,Starcoin Web3 StarTrek source: Gao, Zhenhuan, Yuxuan Hu, and Qinfan Wu. “Jellyfish Merkle Tree,” n.d., 12. What is Addressable mean? It means the leaf node in the tree can be found by an address. The address encoded the path to the leaf node, for example, a leaf node in a binary tree, which has 3 level. Its address may be encoded to 010, the corresponding path is: left->right->left: 0 1 0 + + + v v v left right left root / \ H1 H2 /\ /\ D1 D2 D3 D4 As we can see, the address 010 leads us to the leaf node D2. ...

    June 7, 2022 · 2 min · Gray King

    Starcoin Blockchain from Scartch

    tags: Starcoin Web3 StarTrek,Blockchain Overview Block is the basic element in a blockchain system, as we known blockchain system is just a ledger, which means a bookkeeping1 that recording of financial transactions. In the blockchain system, those transactions are stored in the blocks. In each block, the data stored in may look like: TXN FROM TO VALUE #0 God Cale 100 #1 Cale Alice 10 #2 Alice Bob 1 #3 Bob Mike 0.5 Then what’s a blockchain? Just simply chain the blocks together, usually add a field to point to its parent: ...

    June 2, 2022 · 1 min · Gray King

    Merkle tree

    tags: Starcoin Web3 StarTrek,Blockchain source: Wikipedia: Merkle tree Starcoin Cookbook What is a Merkle tree. Merkle tree is a hash tree, named after Ralph Merkle, who patented in 1979. Most implementations of them are binary, which means two child nodes under each node. Why the merkle tree is important to the peer-to-peer network? The main purpose of a merkle tree is to ensure the data we received from a peer-to-peer network are undamaged and unaltered, it’s important as the data were splitted into many blocks and stored in multiple nodes in the network. ...

    June 1, 2022 · 2 min · Gray King

    Blockchain: It's not still the early days

    tags: Blockchain,Web3 source: White, Molly. “It’s Not Still the Early Days.” Molly White, January 14, 2022. https://blog.mollywhite.net/its-not-still-the-early-days/. For blockchains, some thoughts are false, like: “It’s the early days.” “Give it a chance.” The reason is long time have passed, but no bright changes happened, the long time means Bitcoin began to be used in 2009, and Ethereum lanched in 2015. To compare: Smartphones from 2009 to 2015: Nokia -> iPhone/Android. Blogs: Google Reader -> Twitter. Fully-electric cars: Tesla. CPU: i3/i5 -> i9/M1 GPU Operating System. a lot has changed in the technology world in the past six to twelve years. ...

    January 17, 2022 · 1 min · Gray King

    Crypto: the good, the bad and the ugly

    tags: Blockchain,Smart contracts,Web3 source: “Crypto: The Good, the Bad and the Ugly.” Accessed January 7, 2022. https://seldo.com/posts/crypto-the-good-the-bad-and-the-ugly. The good: Smart contracts allows anybody to execute arbitrary code in the network. And use money to avoid abuse, as every action in the smart contract cost money(computing resource). Finaacial engineering: new money. Entertainment: NFT, a big dream(culture) for everybody who loves crypto. True cloud computing: Smart contracts again. Web3 The bad: Environmental impact: the grievously wateful nature of PoW. But it’s changing. Interactions at boundaries: private(isolate) network. DAOs have a major boundary problem: not a legally binding contract, without goverment support. Governace GAS fee limit scale Incentives for participation: how money come in to this system? Web3: is a currency a practical model for general computing? The ugly: NFTs, ICOS. ...

    January 7, 2022 · 1 min · Gray King

    Smart contracts

    tags: Blockchain,Ethereum source: https://ethereum.org/en/developers/docs/smart-contracts/ A type of Ethereum account. Some code deployed and running in some VM, like Ethereum Virtual Machine.

    January 5, 2022 · 1 min · Gray King

    Decentralized autonomous organizations (DAOs)

    tags: Ethereum,Smart contracts,Blockchain,Web3 source: https://ethereum.org/en/dao/ Based on smart contracts and use tokens for voting. Tokens can be exchanged in the market.

    January 5, 2022 · 1 min · Gray King

    A not so gentle intro to web3

    tags: Blockchain,Web3 source: https://www.kooslooijesteijn.net/blog/web3

    January 4, 2022 · 1 min · Gray King

    Web3

    tags: Blockchain

    January 4, 2022 · 1 min · Gray King

    Ledger, the first peer-reviewed journal dedicated to the study of blockchains and cryptocurrencies!

    tags: Blockchain

    January 4, 2022 · 1 min · Gray King

    Proof-of-stake

    tags: Blockchain,Blockchain Proof,Ethereum,Solana source: https://ethereum.org/en/developers/docs/consensus-mechanisms/pos/ Proof workflow: Users stake money(ETH) to become a validator. Validators are chosen at random to create blocks and are responsible for checking and confirming blocks they don’t create. user’s stake is also used as a way to incentivise good validator behavior. For example, a user can lose a portion of their stake for things like going offline (failing to validate) or their entire stake for deliberate collusion. ...

    January 4, 2022 · 1 min · Gray King

    Ethereum

    tags: Blockchain

    January 4, 2022 · 1 min · Gray King

    Proof-of-work

    tags: Blockchain Proof,Blockchain,Ethereum source: https://ethereum.org/en/developers/docs/consensus-mechanisms/pow/ Wikipedia: https://en.wikipedia.org/wiki/Proof%5Fof%5Fwork A key feature of proof-of-work schemes is their asymmetry: the work – the computation – must be moderately hard (yet feasible) on the prover or requester side but easy to check for the verifier or service provider. With a hash function, let’s say SHA-1. For example, to do PoW, we need to generate a SHA-1 hash of the given data that must begins 52 binary zeros, that is 13 hexadecimal zeros: ...

    January 4, 2022 · 1 min · Gray King

    Blockchain Proof

    tags: Blockchain

    January 4, 2022 · 1 min · Gray King

    Shinobi Systems' Solana Proof of Stake + Proof of History Primer

    tags: Blockchain,Solana,Proof-of-stake,Proof-of-history source: “Shinobi Systems’ Solana Proof of Stake + Proof of History Primer.” Accessed January 5, 2022. https://www.shinobi-systems.com/primer.html.

    January 4, 2022 · 1 min · Gray King

    Solana

    tags: 区块链 POST https://node.onekey.so/sol Content-Type: application/json { "id": 1, "jsonrpc": "2.0", "method": "getSignaturesForAddress", "params": ["35wyEANtpzPJMUvEKXkK8HRriieTxkSanQtKWk6H9ZoY"] } TX POST https://solana-mainnet.g.alchemy.com/v2/DLTabdbSnGUoSoFBu-xjjfpplQFdqsP7 Content-Type: application/json { "id": 1, "jsonrpc": "2.0", "method": "getTransaction", "params": ["4emUuam8KS2ZTMQiJek9FTVM5WWU8j6FBuFGpe9Y7nQkvBhfoAwb3k6yuNBA7Nxv2qF6Mz57FuyLKPTkt84yRRB3", {"encoding": "jsonParsed", "maxSupportedTransactionVersion": 0}] }

    January 4, 2022 · 1 min · Gray King

    Blockchain Demo

    tags: Video: Blockchain 101 - A Visual Demo,区块链, Online Tools source: https://andersbrownworth.com/blockchain/hash

    January 3, 2022 · 1 min · Gray King

    Video: Blockchain 101 - A Visual Demo

    tags: 区块链 source: https://youtu.be/%5F160oMzblY8 It’s like Git but not support merge. The progress of changing blocks like git rebase.

    January 3, 2022 · 1 min · Gray King

    Distributed consensus (blockchain) simulation and visualization

    tags: 分布式共识,Online Tools,区块链 source: https://web3scout.github.io/forcecons-sim/

    January 1, 2022 · 1 min · Gray King
© 2025 Taking Smart Notes With Org-mode · Powered by Hugo & PaperMod