Skip to content

Instantly share code, notes, and snippets.

@eddywm
Created January 16, 2018 16:19
Show Gist options
  • Save eddywm/144b240782df9002dc657c41f0708535 to your computer and use it in GitHub Desktop.
Save eddywm/144b240782df9002dc657c41f0708535 to your computer and use it in GitHub Desktop.
A minimal structure of a Transaction in a blockchain system
data class Transaction (
var hash: String = "",
var type: TYPE = TYPE.REGULAR,
var inputs: Array<TransactionInput> = emptyArray(),
var outputs: Array<TransactionOutput> = emptyArray()
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment