Re: Doubt in defining an Asset

Matthew White

Hi - the world state is a set of key-value pairs - the value can be whatever data format you wish. Marshalling these is part of the job of the client applications.
Regards, Matthew.
Matthew B White  IBM Blockchain Solutions Architect
Email me at WHITEMAT@...
Find me on StackOverflow, and generally at
Note: restricted availability for meetings 14:30 to 17:00 UK Tuesday 
IBM United Kingdom Limited, Hursley Park, Winchester, Hampshire, SO21 2JN

"The wrong answers are the ones you go looking for when the right answers stare you in the face"
----- Original message -----
From: "Ameya Sinha via Lists.Hyperledger.Org" <>
Sent by: fabric@...
To: "fabric@..." <fabric@...>
Cc: fabric@...
Subject: [EXTERNAL] [Hyperledger Fabric] Doubt in defining an Asset
Date: Wed, Feb 26, 2020 12:02 PM



I had two questions.


I wanted to know if it would be possible to define an asset which is self-referential. Also when defining assets such as these, do they work in the traditional way of how we think about self-referential structures? i.e do they store the address of the node but now the address is on the blockchain DB.


I’m trying something that would look like –


              type playlist struct {

    name       string `json:"name"`

    head       *song `json:"head"`

    nowPlaying *song `json:"nowPlaying"`



Thanks for any help!


Ameya Sinha.

Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU

Join to automatically receive all group messages.