net.corda.core.crypto / PublicKeyTree / Node

# Node

`class Node : PublicKeyTree`

Represents 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.

### Constructors

<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.

### Properties

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>`

### Inherited Properties

singleKey | `val singleKey: PublicKey` Returns the enclosed PublicKey for a PublicKeyTree with a single node

### Functions

equals | `fun equals(other: Any?): Boolean`
hashCode | `fun hashCode(): Int`
isFulfilledBy | `fun isFulfilledBy(keys: Iterable<PublicKey>): Boolean` Checks whether keys match a sufficient amount of leaf nodes
toString | `fun toString(): String`

### Inherited Functions

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`