How to see data in couchdb after setting up couchdb as state database in daml on fabric
December 1, 2020, 11:17am
Hi! Welcome to the community.
You could try using the navigator (
daml navigator server) to visualize the contracts.
I think that while you may be able to use native tools to inspect the ledger state, contracts won’t be intelligible, as they will probably be encoded/encrypted.
This post may also be useful for further info:
This is a great question!
You should use signatory/observers to restrict access to the data. The underlying ledger (ok - maybe not the sandbox, but a production ledger) will take care of encryption for you, or it might even restrict access physically by keeping the data on your local node, where other parties are unable to access it altogether! edit: See
ledger topologies for an overview of the different approaches that may be used to guarantee privacy. It all depends on the implementation and…
Thanks for your reply, is it possible to see the data in couchdb fauxton interface?
If you’re connecting to CouchDB directly, you will be able to see
some data (i.e. mostly just the fact that there is data), but it will likely be encoded. See the question @Luciano linked to for details.
December 2, 2020, 9:08pm
Welcome to the DAML Community
I don’t have experience with fauxton but what I expect is that you’ll see the data but it will look like an opaque blob, you won’t be able to see it in fauxton in a way that is meaningful to you. The answers to these two questions explains why:
This is the ChaincodeArgs part of a transaction. I tried to Base64 decode the data, but nothing intelligible came out of it.
When daml is deployed on fabric, what is stored on the database? What is stored on the chain?
Thank you all for the assistance …