blockchain - 在区 block 链上存储数据

标签 blockchain

我正在开发一个 POC,我必须在其中存储一些数据,例如对象的 ID、价格、所有者等等。是否可以使用智能合约将这些东西存储在区块链上。如果不是,有什么方法可以使用区块链来实现它。 (我做了一些研究,人们在 SCM 行业使用区块链。他们一定存储了这些数据)。

最佳答案

是的,如果您使用以太坊智能合约,您可以定义您的合约并将其与交易一起存储。

https://www.ethereum.org/greeter

请注意,如果您不对合约中存储的数据进行加密,那么每个人都可以访问它。

关于blockchain - 在区 block 链上存储数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43732402/

相关文章:

hyperledger-fabric - 了解 Hyperledger Fabric 背书策略逻辑和对等点类型

ethereum - 使用 Infura 提供程序时,web3.eth.getAccounts() 返回空数组。为什么?

blockchain - Solidity 基础知识 : what "msg.sender" stands for

blockchain - ethers.js 煎饼交换上的 swapExactETHForTokens 和 swapExactTokensForTokens

blockchain - 无法通过 Truffle 在 Rinkeby 或 Ropsten 上部署智能合约

curl - 在 Windows 7 Docker 快速入门终端中运行curl 命令的问题

azure - 安装测试corda节点时出现安装错误

ibm-cloud - 是否有使用 Hyperledger Composer 正在开发/已经开发的企业解决方案

linux - 应用时错误拉取图像配置./get-docker-images.sh

hyperledger-fabric - super 账本结构 : failed to execute transaction: timeout expired