ToBytes

merkle.ToBytes
See theToBytes companion object
abstract class ToBytes[+A] extends Product, Serializable

A mechanism to control how the hashable data is produced from user-provided data. For example, we might use Paths in our tree construction, but when hashing them we don't want to treat them as strings, but rather read the file contents and hash those instead.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
object Arr
object FileContents
object FileMtime
object Str
object TreeMtime

Members list

Value members

Abstract methods

def serialise(raw: Array[Byte]): String

Concrete methods

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Inherited and Abstract methods

def canEqual(that: Any): Boolean

Attributes

Inherited from:
Equals

Attributes

Inherited from:
Product
def productElement(n: Int): Any

Attributes

Inherited from:
Product