-
Notifications
You must be signed in to change notification settings - Fork 0
PathWithLeaf
ratranqu edited this page Apr 7, 2021
·
2 revisions
public struct PathWithLeaf<Node: NodeProtocol>: CustomStringConvertible, Codable
Codable
, CustomStringConvertible
public typealias Hash = Node.Hasher.Hash
var description: String
verify
checks that the leaf node's hash + the inner nodes merkle-izes to
the given root. If it returns an error, it means the leafHash or the
PathToLeaf is incorrect.
public func verify(_ root: Node) throws -> Bool
public func computeRootHash() -> Hash
Generated at 2021-04-20T11:34:45+0000 using swift-doc 1.0.0-beta.5.