Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Troy McConaghy
    @ttmc
    Yes, a private blockchain can certainly restrict read access, but that happens outside the blockchain itself.
    Parvinder Thapar
    @psthapar
    Yep. Agreed. Thanks.
    CodyMTX
    @CodyMTX
    I'm having an issue posting transactions
    is this where I would get some insight?
    Parvinder Thapar
    @psthapar
    Hi @CodyMTX what drivers are you using? js or java drivers?
    CodyMTX
    @CodyMTX
    @psthapar I am using JavaScript and also got the error with the Python drivers...leading me to believe it may be a configuration issue on my part? I have the docker installation running flawlessly, but can't seem to replicate it outside in a prod env
    Diego Sierra Fernandez
    @jdiegosierra
    Is someone using js-driver-orm?
    I'm trying to change the owner of an asset but when it reachs the append nothing happends.
    router.post('/transfer', function(req, res) {
        conn.searchAssets(req.body.assetName)
        .then(assets => {
            const did = new DID(req.body.assetPublicKey);
            did.define(req.body.modelName);
            did.models[req.body.modelName]
            .retrieve(assets[0].id)
            .then(asset => {
                console.log(asset)
                // [ OrmObject {
                //     _name: 'test',
                //     _schema: undefined,
                //     _connection:
                //      Connection {
                //        path: 'http://localhost:9984/api/v1/',
                //        headers: {},
                //        conn: [Connection] },
                //     _appId: 'global',
                //     transactionHistory: [ [Object] ],
                //     id: 'id:global:test:99040993-0fa3-4c32-9d54-f6d83a65fb1f',
                //     data: { myData: '', ownerName: 'Juan Diego' } } ]
                return asset.append({
                    toPublicKey: req.body.destPublicKey,
                    keypair: req.body.ownerKeyPair,
                    data: {
                        myData: req.body.data,
                        ownerName: req.body.ownerName
                    }
                })
            })
            .then(updatedAsset => {
                console.log("This message does not appear")
                console.log(updatedAsset);
                res.send(updatedAsset);
            })
        })
    });
    Shivank Chopra
    @ShivankChopra
    Hi everyone. For testing the tamper resistance of data stored on bigchainDB, I intentionally changed the asset and metadata stored on the bigchain mongo database to random values. But it didnt seem to affect the working of bigchain db node. Should'nt the blockchain become invalid due to changed hash value because of this?
    Vishal1010101
    @Vishal1010101
    I am having an issue in this line of code
    const alice = new BigchainDB.Ed25519Keypair(seed)
    at Object.encode (/Users/apple/Documents/big_chaindb/node_modules/base-x/index.js:29:41)
    at new Ed25519Keypair (/Users/apple/Documents/big_chaindb/node_modules/bigchaindb-driver/dist/node/Ed25519Keypair.js:28:33)

    /Users/apple/Documents/big_chaindb/node_modules/base-x/index.js:29
    if (!Buffer.isBuffer(source)) throw new TypeError('Expected Buffer')
    ^

    TypeError: Expected Buffer

    can anyone help
    Troy McConaghy
    @ttmc
    @Vishal1010101 I think something is wrong with the JS driver in npm. If you get the JS driver straight from GitHub, I think that one is working. https://github.com/bigchaindb/js-bigchaindb-driver
    Vishal1010101
    @Vishal1010101
    Thanks man @ttmc seems like there is an issue with the Ed25519Keypair.js file through npm.
    It's solved in the github commit.
    Vishal1010101
    @Vishal1010101
    querying for the metadata gives an error where as assets is working fine with the url
    @ttmc
    status: '500 INTERNAL SERVER ERROR'
    Vishal1010101
    @Vishal1010101
    also changing the url to http://localhost:9984/api/v1/ in api_path is also giving an error { FetchError: request to http://localhost:9984/api/v1/metadata?search=1.32 failed, reason: connect ECONNREFUSED 127.0.0.1:9984
    Troy McConaghy
    @ttmc
    @Vishal1010101 Put double quotes (%22) around the 1.32 in the requestURI, e.g. https://test.bigchaindb.com/api/v1/metadata?search=%221.32%22
    Vishal1010101
    @Vishal1010101
    @tttmc why we have to give a specific url in the API_PATH shouldn't it be working with "https://test.bigchaindb.com/api/v1/" as it is working fine with assets
    Troy McConaghy
    @ttmc
    I don't know. Reality is strange, sometimes.
    Vishal1010101
    @Vishal1010101
    @ttmc indeed it is
    Vishal1010101
    @Vishal1010101
    FetchError: request to http://localhost:9984/api/v1/transactions?mode=commit failed, reason: connect ECONNREFUSED 127.0.0.1:9984
    Vishal1010101
    @Vishal1010101
    @ttmc help man
    Troy McConaghy
    @ttmc
    @Vishal1010101 Do other endpoints work? Such as just http://localhost:9984
    Vishal1010101
    @Vishal1010101
    yes it does
    i am using the docs and running the same code
    abhi-nilekar
    @abhi-nilekar
    hello guys , i installed bigchaindb-driver but still getting an error saying bip39 is not found , how should i fix it ??
    Troy McConaghy
    @ttmc
    @abhi-nilekar The JavaScript driver available from npm is broken (and I don't know how to fix it) but I do know that the JavaScript driver available directly from the JavaScript driver GitHub repo is working, at least in that regard. See https://github.com/bigchaindb/js-bigchaindb-driver
    Robel kebede
    @robelkebede44
    i am having trouble transferring asset bigchaindb:all-in-one image and bigchaindb-driver:4.0.0
    Robel kebede
    @robelkebede44
    '''
    TypeError: Cannot read property '0' of undefined
    _app_1 | at /app/node_modules/bigchaindb-driver/dist/node/transaction.js:285:49
    _app_1 | at Array.map (<anonymous>)
    _app_1 | at Function.makeTransferTransaction (/app/node_modules/bigchaindb-driver/dist/node/transaction.js:280:41)
    _app_1 | at Promise (/app/foodchain.js:205:60)
    _app_1 | at new Promise (<anonymous>)
    _app_1 | at foodchain.transferAsset (/app/foodchain.js:198:16)
    _app_1 | at app.post (/app/index.js:49:13)
    _app_1 | at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)
    _app_1 | at next (/app/node_modules/express/lib/router/route.js:137:13)
    _app_1 | at Route.dispatch (/app/node_modules/express/lib/router/route.js:112:3)
    '''
    i am having trouble transferring asset bigchaindb:all-in-one image and bigchaindb-driver:4.0.0
    lakshit singh
    @singhlakshit19_gitlab
    Hi everyone, I have been able to generate the keys of a create transactions but the data is not showing up in bigchaindb trying collection.asset.find() yields no result but the postedTransaction is successfully returning the created asset
    mdhinakaran
    @mdhinakaran

    How to get all available Assets?
    How to get all assets for particular public Key/private key?

    Using below URL to retrieve the specific assets/metadata using search criteria
    http://localhost:9984/api/v1/assets?search={search_param_string}

    frank-nankivell
    @frank-nankivell

    @robelkebede44 Hi Robel,

    I am having the same problem.

    I am using nodejs driver 4.1.0 as the 4.1.1 appears not to work properly.

    How did you resolve this when running the function? driver.Transaction.makeTransferTransaction(

    Aditya1305249
    @Aditya1305249
    when i send this transaction
    const tx = BigchainDB.Transaction.makeCreateTransaction(
    // Define the asset to store, in this example it is the current temperature
    // (in Celsius) for the city of Berlin.
    { message:'thsa is my forbmnfds '},
                // Metadata contains information about the transaction itself
                // (can be `null` if not needed)
                {metadata},
    
                // A transaction needs an output
                [ BigchainDB.Transaction.makeOutput(
                        BigchainDB.Transaction.makeEd25519Condition(alice.publicKey))
                ],
                alice.publicKey
            )
    
            // Sign the transaction with private keys
            const txSigned = BigchainDB.Transaction.signTransaction(tx, alice.privateKey)
    
            // Send the transaction off to BigchainDB
            let conn = new BigchainDB.Connection(API_PATH)
    
            conn.postTransactionCommit(txSigned)
    const API_PATH = 'http://localhost:9984/api/v1/'
    then it worked
    but when i try to access bigchaindb node which are running on another device and commit same transaction then i'm getting this error
    {message: "HTTP Error: Requested page not reachable", status: "500 INTERNAL SERVER ERROR", requestURI: "http://46.101.172.49:9984/api/v1/transactions?mode=commit"}
    message: "HTTP Error: Requested page not reachable"
    requestURI: "http://ip-address-of-device:9984/api/v1/transactions?mode=commit"
    status: "500 INTERNAL SERVER ERROR"
    proto: Object
    kalyanipullela
    @kalyanipullela
    @mdhinakaran To get all the available assets, you have to write the mongodb qry for it, there isn't any API to get all the avaliable assets
    To get all assets for particualr public key you can use 'http://localhost:9984/api/v1/outputs?public_key={public_key}' which will give the spent and unspent transactions for the user

    @abhi-nilekar
    npm install bigchaindb-driver@4.1.0
    npm install base-x@3.0.4
    npm install bip39@2.5.0

    may be it will help you

    Mahmudin Ashar
    @mahmudinashar
    hii all, i'm curently new in bigchaindb ?
    can i ask some question ?
    i have some error like this ?
    what's acutualy happen