P2P
tags: Starcoin Web3 StarTrek,Blockchain
tags: Starcoin Web3 StarTrek,Blockchain
tags: Starcoin Web3 StarTrek,starcoin issue solving Today I saw this issue: starcoin#3450 at GitHub, I decide to give it a try. The corresponding type VMStatus is defined out of starcoin’s reposiotry, here. The work need to be done seems are: convert function from u16 to a readable string. convert status_code from StatusCode to a readable string. Let’s take a look at StatusCode first, StatusCode is a enum that contains lot of variants, WOW! My intuition is that can we just get the name of the variant by it’s value. Or I’ll write an ugly match that contains tons of arms. Maybe there already existed some similar code, Let me do a search. ...
tags: Starcoin Web3 StarTrek
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. ...
tags: Starcoin Web3 StarTrek,Account-Model Blockchain Systems source: https://academy.horizen.io/technology/expert/utxo-vs-account-model/