corda / net.corda.core.crypto / CompositeKey / NodeAndWeight / <init>

<init>

NodeAndWeight(node: PublicKey, weight: Int)

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.