Skip to content

Instantly share code, notes, and snippets.

@eddywm
Last active January 16, 2018 16:13
Show Gist options
  • Save eddywm/64118990ad3102ceff623aac7a136469 to your computer and use it in GitHub Desktop.
Save eddywm/64118990ad3102ceff623aac7a136469 to your computer and use it in GitHub Desktop.
/** 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