简体   繁体   English

即使您不是所有者,也可以在公共区块链上读取信息吗?

[英]Can information be read on public blockchain even if you arent the owner?

Let's imagine I write information on a public blockchain like Ethereum, in plain text.让我们想象一下,我在像以太坊这样的公共区块链上以纯文本形式编写信息。 This information could be a transaction or even a smart contract that I deployed.这些信息可能是我部署的交易甚至是智能合约。 Can another user read this information in the blockchain?其他用户可以在区块链中读取此信息吗? As we are talking about a public network I guess this information is available for everyone, right?当我们谈论公共网络时,我想每个人都可以使用此信息,对吗? And if that is, how?如果是这样,怎么办? For example, can another user, with the block number or the transaction ID go to etherscan and in same way read the code of my smart contract?例如,另一个用户可以使用区块号或交易 ID go 进行 etherscan 并以同样的方式读取我的智能合约代码吗? How?如何?

Public data is by definition public.公共数据根据定义是公共的。 It means everybody can read it.这意味着每个人都可以阅读它。

You can read the data by using a blockchain explorer or reading the data directly from your Ethereum node.您可以使用区块链浏览器或直接从您的以太坊节点读取数据来读取数据。

While binary data is always public, human-readable data often needs an ABI file .虽然二进制数据始终是公开的,但人类可读的数据通常需要ABI 文件 With the ABI file, Ethereum JSON-RPC access you can use a library like Web3.js or Web3.py to read the data easily.通过 ABI 文件、以太坊 JSON-RPC 访问,您可以使用 Web3.js 或 Web3.py 等库轻松读取数据。

The plain code no, like the solidity source code.纯代码没有,就像solidity 源代码一样。 But it's possibile to "decompile" the ABI and get a "raw" version of your code.但是可以“反编译”ABI 并获得代码的“原始”版本。 You can upload the source code then verify the smart contract on the scanner (for eth etherscan.io ), this process enforce the "credibility" of your contract.您可以上传源代码,然后在扫描仪上验证智能合约(对于 eth etherscan.io ),此过程会强制执行您的合约的“可信度”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 区块链可以存储在 SQL 甚至 noSQL 数据库中吗? - Can blockchain be stored in SQL or even noSQL database? 有人可以详细说明其公钥和签名包含在区块链的交易中吗? - Can somebody elaborate whose public key and signature is included in a transcation in blockchain? 公链如何保护私链? - How to protect private blockchain with public blockchain? 您如何验证区块链/ DLT未被篡改? - How can you verify that a blockchain/DLT has not been tampered with? 运行区块链节点时是否会耗尽存储空间? - Can you run out of storage space while running a blockchain node? 在区块链块上嵌入其他信息 - Embed additional information on a Blockchain Block 如何使 Hyperledger Blockchain 应用程序公开/在线? - How to make a Hyperledger Blockchain application public/Online? AppII是建立在私有或公共区块链上的吗 - Is AppII built upon private or public blockchain 有什么办法可以让区块链上的特定信息只能被一个特定的账户查询? - Is there any way to make a specific information on blockchain can only be queried by one specific account? 区块链可以集中化吗? 如果它是集中的,它会被称为区块链吗? - Can a blockchain be Centralised? Will it be called as Blockchain if it is centralised?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM