Last active
January 16, 2018 16:13
-
-
Save eddywm/64118990ad3102ceff623aac7a136469 to your computer and use it in GitHub Desktop.
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
/** Kotlin code example for a block structure */ | |
data class Block ( | |
var index: Int = 0, | |
var hash: String = "", | |
var previousHash: String = "0", | |
var timestamp: Long = 0, | |
var nonce: Int = 0, | |
var numTx: Int = 0, | |
var transactions: Array<Transaction> = emptyArray() | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment