简体   繁体   English

有什么办法可以让区块链上的特定信息只能被一个特定的账户查询?

[英]Is there any way to make a specific information on blockchain can only be queried by one specific account?

just want to know, is there any way to make specific information on the blockchain can only be queried by one specific account?只是想知道,有什么办法可以让区块链上的特定信息只能由一个特定的账户查询吗?

More exactly, I am thinking let the user put their information on chain and give specific account access, so only that account can query that information from chain.更确切地说,我在考虑让用户将他们的信息放在链上并授予特定帐户访问权限,这样只有该帐户才能从链上查询该信息。

I checked ZK-SNARK, seems like this algorithm is only for verify the information is correct without knowing any detail of the information.我查了ZK-SNARK,好像这个算法只是为了验证信息是否正确,不知道信息的任何细节。 Seems like it cannot be used in this case似乎不能在这种情况下使用

Any raw data placed on a blockchain is available to everyone on the network.放置在区块链上的任何原始数据都可供网络上的每个人使用。 This is one of the fundamental requirements to ensure that multiple distributed and decentralized nodes are able to verify a shared state.这是确保多个分布式和去中心化节点能够验证共享状态的基本要求之一。

However, the data placed on chain does not need to be "transparent" to every user.但是,放在链上的数据并不需要对每个用户都“透明”。 You could, for example, encrypt some data and place it on the blockchain.例如,您可以加密一些数据并将其放在区块链上。 Of course everyone will be able to see your encrypted data, but only with the decryption key would they be able to make sense of it.当然,每个人都可以看到您的加密数据,但只有使用解密密钥,他们才能理解它。

With the assumption that the blockchain you use has some built in public key cryptography for account authentication, you could use the private key as your encryption/decryption key.假设您使用的区块链具有一些内置的用于帐户身份验证的公钥加密,您可以使用私钥作为加密/解密密钥。 Thus only "that account" would have acces to that file (...anyone who knows the private key that corresponds to that account).因此,只有“该帐户”才能访问该文件(...任何知道与该帐户相对应的私钥的人)。

However, all of this logic would need to exist "off-chain".然而,所有这些逻辑都需要存在于“链下”。 If you submit a transaction with raw data, and expect the blockchain to do the encryption/decryption for you, anyone who runs a node would be able to see that transaction and your raw data.如果您提交带有原始数据的交易,并希望区块链为您进行加密/解密,那么运行节点的任何人都能够看到该交易和您的原始数据。 Thus it must be encrypted before it ever reaches the blockchain.因此,它必须在到达区块链之前进行加密。

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

相关问题 我们可以限制 Corda 中的帐户只接受一个特定的 state 吗? - Can we restrict an account in Corda to accept only one specific state? 如何在Namecoin区块链或任何基于身份的区块链如Emercoin上存储和查询数据 - How is data stored and queried on the Namecoin blockchain, or any identity based blockchain like Emercoin 区块链高清地址如何查询 - How are blockchain HD address queried 服务器可以“冒充”以太坊区块链上的用户帐户吗? - Can a server "impersonate" an user account on Ethereum blockchain? 即使您不是所有者,也可以在公共区块链上读取信息吗? - Can information be read on public blockchain even if you arent the owner? 什么是区块链中的对等点? 已注册的用户是否注册到特定的对等节点? - What is a peer in blockchain ? is the enrolled user enrolls into a specific peer? 将 Solana 空投到特定帐户 - Airdropping Solana to a Specific Account 有没有办法通过区块链来验证与加密货币无关的东西? - Is there any way to validate something not related to cryptocurrency, through blockchain? Coinbase 区块链和区块链之间有什么区别吗? - Is there any diffrence between Coinbase blockchain and Blockchain? 在区块链块上嵌入其他信息 - Embed additional information on a Blockchain Block
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM