public static class CompositeKey.Node extends CompositeKey
Represents a node in the key tree. 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 sub-tree rooted at this node.
CompositeKey.Builder, CompositeKey.Companion, CompositeKey.Leaf, CompositeKey.Node
Companion
Constructor and Description |
---|
Node(int threshold,
java.util.List<? extends net.corda.core.crypto.CompositeKey> children,
java.util.List<java.lang.Integer> weights)
Represents a node in the key tree. It maintains a list of child nodes – sub-trees, and associated
weights carried by child node signatures.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
java.util.List<net.corda.core.crypto.CompositeKey> |
getChildren() |
java.util.Set<java.security.PublicKey> |
getKeys()
Returns all PublicKeys contained within the tree leaves
|
int |
getThreshold() |
java.util.List<java.lang.Integer> |
getWeights() |
int |
hashCode() |
boolean |
isFulfilledBy(java.lang.Iterable<? extends java.security.PublicKey> keys)
Checks whether keys match a sufficient amount of leaf nodes
|
java.lang.String |
toString() |
containsAny, getKeys, getSingleKey, isFulfilledBy, isFulfilledBy, toBase58String
public Node(int threshold, java.util.List<? extends net.corda.core.crypto.CompositeKey> children, java.util.List<java.lang.Integer> weights)
Represents a node in the key tree. 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 sub-tree rooted at this node.
public boolean isFulfilledBy(java.lang.Iterable<? extends java.security.PublicKey> keys)
Checks whether keys match a sufficient amount of leaf nodes
public java.util.Set<java.security.PublicKey> getKeys()
Returns all PublicKeys contained within the tree leaves
public boolean equals(java.lang.Object other)
public int hashCode()
public java.lang.String toString()
public int getThreshold()
public java.util.List<net.corda.core.crypto.CompositeKey> getChildren()
public java.util.List<java.lang.Integer> getWeights()