ShaChain

data class ShaChain(knownHashes: Map<List<Boolean>, ByteVector32>, lastIndex: Long?)

Types

Companion
Link copied to clipboard
common
object Companion
Node
Link copied to clipboard
common
data class Node(value: ByteVector32, height: Int, parent: ShaChain.Node?)

Functions

addHash
Link copied to clipboard
common
fun addHash(hash: ByteVector32, index: Long): ShaChain
asSequence
Link copied to clipboard
common
fun asSequence(): Sequence<ByteVector32>
getHash
Link copied to clipboard
common
fun getHash(index: Long): ByteVector32?
fun getHash(index: List<Boolean>): ByteVector32?
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

knownHashes
Link copied to clipboard
common
val knownHashes: Map<List<Boolean>, ByteVector32>
lastIndex
Link copied to clipboard
common
val lastIndex: Long? = null