class Node : PublicKeyTreeRepresents a node in the PublicKeyTree. It maintains a list of child nodes – sub-trees, and associated weights carried by child node signatures.
The threshold specifies the minimum total weight required (in the simple case – the minimum number of child signatures required) to satisfy the public key sub-tree rooted at this node.
| <init> |
Node(threshold: Int, children: List<PublicKeyTree>, weights: List<Int>)Represents a node in the PublicKeyTree. It maintains a list of child nodes – sub-trees, and associated weights carried by child node signatures. |
| children |
val children: List<PublicKeyTree> |
| keys |
val keys: Set<PublicKey>Returns all PublicKeys contained within the tree leaves |
| threshold |
val threshold: Int |
| weights |
val weights: List<Int> |
| singleKey |
val singleKey: PublicKeyReturns the enclosed PublicKey for a PublicKeyTree with a single node |
| equals |
fun equals(other: Any?): Boolean |
| hashCode |
fun hashCode(): Int |
| isFulfilledBy |
fun isFulfilledBy(keys: Iterable<PublicKey>): BooleanChecks whether keys match a sufficient amount of leaf nodes |
| toString |
fun toString(): String |
| containsAny |
fun containsAny(otherKeys: Iterable<PublicKey>): <ERROR CLASS>Checks whether any of the given keys matches a leaf on the tree |
| isFulfilledBy |
fun isFulfilledBy(key: PublicKey): <ERROR CLASS> |
| toBase58String |
fun toBase58String(): String |