public static class CompositeKey.NodeAndWeight
Holds node - weight pairs for a CompositeKey. Ordered first by weight, then by node's hashCode. Each node should be assigned with a positive weight to avoid certain types of weight underflow attacks.
public NodeAndWeight(@NotNull java.security.PublicKey node, int weight)
Holds node - weight pairs for a CompositeKey. Ordered first by weight, then by node's hashCode. Each node should be assigned with a positive weight to avoid certain types of weight underflow attacks.
public int compareTo(@NotNull net.corda.core.crypto.CompositeKey.NodeAndWeight other)
@NotNull public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
@NotNull public java.lang.String toString()
@NotNull public java.security.PublicKey getNode()
public int getWeight()
@NotNull public java.security.PublicKey component1()
public int component2()
@NotNull public net.corda.core.crypto.CompositeKey.NodeAndWeight copy(@NotNull java.security.PublicKey node, int weight)
Holds node - weight pairs for a CompositeKey. Ordered first by weight, then by node's hashCode. Each node should be assigned with a positive weight to avoid certain types of weight underflow attacks.
public int hashCode()
Holds node - weight pairs for a CompositeKey. Ordered first by weight, then by node's hashCode. Each node should be assigned with a positive weight to avoid certain types of weight underflow attacks.
public boolean equals(@Nullable java.lang.Object p)
Holds node - weight pairs for a CompositeKey. Ordered first by weight, then by node's hashCode. Each node should be assigned with a positive weight to avoid certain types of weight underflow attacks.