bigchaindb / bigchaindb/java-bigchaindb-driver

Asset data structure support

Open
#27 0 comments 0 reactions 1 assignee Claimed by @innopreneur View on GitHub
bug work-in-progress
Dominant language
Java
Stars
29
Forks
30
PR merge metrics
No merged PRs in 30d

Description

The bigchaindb specs state that an asset can be

"an associative array containing exactly one key-value pair."

in the glossary an associative array is defined as

"A collection of key/value (or name/value) pairs such that each possible key appears at most once in the collection. In JavaScript (and JSON), all objects behave as associative arrays with string-valued keys. In Python and .NET, associative arrays are called dictionaries. In Java and Go, they are called maps. In Ruby, they are called hashes. See also: Wikipedia’s articles for Associative array and Comparison of programming languages (associative array)"

The specs do not appear to place limitations on the data types for the keys and values of an associative array's records

Yet, at this point in time, the java driver support only asset data of the following types:

String
String[]
TreeMap

When trying to execute a transaction with asset data of type other than the above, the transaction fails with "malformed" error message

For my Android app, I need to be able to have transactions with at least data of the following types:

List/ArrayList
TreeMap

The same is true of metadata. I need to be able to have metada of types

List/ArrayList
TreeMap

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.