-
Notifications
You must be signed in to change notification settings - Fork 0
RangeProof
ratranqu edited this page Apr 7, 2021
·
2 revisions
public struct RangeProof<Node: NodeProtocol>: CustomStringConvertible, Codable
Codable
, CustomStringConvertible
public typealias Hash = Node.Hasher.Hash
public typealias Hasher = Node.Hasher
public typealias Key = Node.Key
public typealias Value = Node.Value
public init(leftPath: PathToLeaf<Node>, innerNodes: [PathToLeaf<Node>] = [], leaves: [ProofLeafNode<Node>])
public init(from decoder: Decoder) throws
var description: String
var leftPath: PathToLeaf<Node>
var innerNodes: [PathToLeaf<Node>]
var leaves: [ProofLeafNode<Node>]
var rootHash: Hash!
var treeEnd: Bool
var keys: [Key]
var leftIndex: Int64
public func encode(to encoder: Encoder) throws
public func verifyItem(_ rootHash: Hash, _ key: Key, _ value: Value) throws
public func verifyAbsence(_ rootHash: Hash, _ key: Key) throws
public func verify(_ rootHash: Hash) -> Bool
Generated at 2021-04-20T11:34:45+0000 using swift-doc 1.0.0-beta.5.