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.

Join fabric@lists.hyperledger.org to automatically receive all group messages.