/DBH17

Dutch Blockchain Hackathon '17

Primary LanguagePythonOtherNOASSERTION

DBH17: BigchainDB Kyber Version

BigchainDB opens a public API for the Dutch Blockchain Hackathon '17!

What?! ¯\_(ツ)_/¯

Vanilla

Meet our classic, pristine BigchainDB network running on v0.9.1.

Connect to our API using the following URL:

http://vanilla.ipdb.foundation:9984/

Getting started? Have a look at our docs:

Kyber [Use this one!]

Welcome to our Hackathon Laboratory!

Our kyber version of BigchainDB will be built during this hackathon. To say it in Dunglish: You ask, we turn!

The repo of experimental code is here and the instance is running at:

http://kyber.ipdb.foundation/

The vanilla API is available under

http://kyber.ipdb.foundation/api/v1/

The intergalactic experimental API can be found under:

http://kyber.ipdb.foundation/api/kyber/

and the API code can be found under bigchaindb-kyber

We'll also take requests for the drivers (python and JS)... just give us a shout

Use with the driver:

from bigchaindb_driver import BigchainDB

bdb = BigchainDB('http://kyber.ipdb.foundation')
print(bdb.info())

Run locally

If you have docker-compose installed, you can spin it up locally:

make

If you already built the images:

make run

Stop the containers:

make stop

Experimental code

Asset evaluation

You can add a (limited) script in the asset field and it will be executed. Upon error of the execution of the script the transaction is INVALID.

We provide some basic bigchain commands to query the DB on the server side. For example, to query the unspent output transactions for a specific public key.

asset = {
    'script': "if len(bigchain.get_outputs_filtered('{}', True)) < 1: raise".format("<my_pub_key>")
}

(Other functions can be found in the Bigchain connection code). Ofcourse, we will limit this to the get_ methods only.

Also, the execution is time bound to 1s.

WARNING: This code may make BigchainDB less deterministic!

What Else?

"Make BigchainDB Big!"

We'll be monitoring the performance of our kyber network.

The logs will be available as assets - and we're curious to see how much data will be produced during the hackathon.

Stay Tuned!