Skip to content

Instantly share code, notes, and snippets.

@navarrojava
Created April 20, 2018 17:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save navarrojava/aad1820d2fd3142ed82b98b5efe297b4 to your computer and use it in GitHub Desktop.
Save navarrojava/aad1820d2fd3142ed82b98b5efe297b4 to your computer and use it in GitHub Desktop.
/**
* Sample business network definition.
*/
namespace br.tdc.hackaton.chat
asset Message identified by assetId {
o String assetId
--> User sender
--> User receiver
o String content
}
participant User identified by participantId {
o String participantId
o String firstName
o String lastName
}
transaction RegisterMessage {
--> SampleAsset asset
o String newValue
}
event SampleEvent {
--> SampleAsset asset
o String oldValue
o String newValue
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment