Doubt in defining an Asset
t-amsi@...
Hi,
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.
|
|
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 calanais.me.uk
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 ----- IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
|
|