基于区块链的毕业设计Storage Proofs – 存储证明

本文提供基于区块链的毕业设计国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,基于区块链的毕业设计Storage Proofs – 存储证明 是一篇很好的国外资料

Storage Proofs

Javascript/Typescript library to generate storage proofs for ERC token contracts.

The library is heavily inspired on the prior work of @izqui on evm-storage-proofs.

Usage

Instal with NPM:

npm install @vocdoni/storage-proofs-eth
const tokenAddress = "0x1234..." const holderAddress = "0x2345..." const balancePositionIdx = 1  const balanceSlot = ERC20Prover.getHolderBalanceSlot(holderAddress, balancePositionIdx)  const storageProover = new ERC20Prover(jsonRpcUri) const data = await storageProover.getProof(tokenAddress, [balanceSlot], blockNumber, true)  const { proof, block, blockHeaderRLP, accountProofRLP, storageProofsRLP } = data  // ...

储存证明

Javascript/Typescript库为ERC令牌契约生成存储证明。

该库的灵感来源于@izqui先前关于evm存储证明的工作。

使用方法

安装NPM:

npm install @vocdoni/storage-proofs-eth
const tokenAddress = "0x1234..." const holderAddress = "0x2345..." const balancePositionIdx = 1  const balanceSlot = ERC20Prover.getHolderBalanceSlot(holderAddress, balancePositionIdx)  const storageProover = new ERC20Prover(jsonRpcUri) const data = await storageProover.getProof(tokenAddress, [balanceSlot], blockNumber, true)  const { proof, block, blockHeaderRLP, accountProofRLP, storageProofsRLP } = data  // ...

部分转自网络,侵权联系删除区块链源码网

www.interchains.cc

https://www.interchains.cc/19642.html

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 ! QQ3039046426
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » 基于区块链的毕业设计Storage Proofs – 存储证明

提供最优质的资源集合

立即查看 了解详情