最近,我读到了关于BigChainDB的文章,并计划在一些PoC项目中使用,比如KYC或Land/Asset。如果有人使用BigChainDB创建了任何可靠的智能契约(S),他们可以共享文档/博客/链接/GitHub存储库吗?在BigChainDB站点上,我找不到很多关于使用BigChainDB实现智能契约的资源。
提前感谢!
问候
发布于 2018-02-18 11:58:03
BigChainDB不是由Ethereum开发的。BigChainDB是实现dApps分布式数据库的无链解决方案。您可以使用Oraclize服务访问Eth合同中的db。
有关更多详细信息,请参阅下面的Oracalize服务链接:
const driver = require('bigchaindb-driver')
const alice = new driver.Ed25519Keypair()
const conn = new driver.Connection(
'https://test.bigchaindb.com/api/v1/',
{ app_id: 'Get credentials from testnet.bigchaindb.com',
app_key: 'by signing up and going to your Applications screen' })
const tx = driver.Transaction.makeCreateTransaction(
{ message: '' },
null,
[ driver.Transaction.makeOutput(
driver.Transaction.makeEd25519Condition(alice.publicKey))],
alice.publicKey)
const txSigned = driver.Transaction.signTransaction(tx, alice.privateKey)
conn.postTransaction(txSigned)将trans /散列保存在合同中。
发布于 2018-02-18 00:08:08
BigChainDB不存在于Ethereum区块链中,因此智能契约无法访问它。您能得到的最接近的是在Ethereum块链上有一个Oracle来查询来自BigChainDB的数据,
https://ethereum.stackexchange.com/questions/40003
复制相似问题