Created
January 16, 2018 16:19
-
-
Save eddywm/144b240782df9002dc657c41f0708535 to your computer and use it in GitHub Desktop.
A minimal structure of a Transaction in a blockchain system
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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