BigChainDB is not developed by Ethereum team. BigChainDB is offchain solution for achieving distributed database for dApps. You can use Oraclize service to access db into Eth contract.
How can I integrate BigChainDB
- Write a Server module using Python or Node.js to get the data from BigChainDB.
- Save basic info for get the data from BigChainDB in Eth Contract.
- If you want to get data from BigChainDB for calculation or verification or any other reason then call 1st service via Oracalize service.
For more details check below links for Oracalize services:
Oraclize Document
Oraclize Examples
As per bigchaindb website:
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)
Save trans Id/hash in contract.
https://github.com/bigchaindb/bigchaindb-examples