Skip to content

HasherProtocol

ratranqu edited this page Apr 7, 2021 · 2 revisions

HasherProtocol

public protocol HasherProtocol

Requirements

hash(_:​)

static func hash<Data: DataProtocol>(_ value: Data) -> Hash

hashLeaf(key:​valueHash:​version:​)

static func hashLeaf<Key: DataProtocol>(key: Key, valueHash: Hash, version: Int64) -> Hash

hashInner(height:​size:​leftHash:​rightHash:​version:​)

static func hashInner(height: Int8, size: Int64, leftHash: Hash, rightHash: Hash, version: Int64) -> Hash