ShaChain

case class ShaChain(knownHashes: Map[Vector[Boolean], ByteVector32], lastIndex: Option[Long])

Structure used to intelligently store unguessable hashes.

Value parameters:
knownHashes

know hashes

lastIndex

index of the last known hash. Hashes are supposed to be added in reverse order i.e. from 0xFFFFFFFFFFFFFFFF down to 0

Companion:
object
Source:
ShaChain.scala
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def addHash(hash: ByteVector32, index: Long): ShaChain
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Returns:

a string representation of the object.

Definition Classes
Any
Source:
ShaChain.scala

Inherited methods

Inherited from:
Product