corda / net.corda.core.crypto / CompositeKey / isFulfilledBy

isFulfilledBy

fun isFulfilledBy(key: PublicKey): Boolean

Takes single PublicKey and checks if CompositeKey requirements hold for that key.

fun isFulfilledBy(keysToCheck: Iterable<PublicKey>): Boolean

Function checks if the public keys corresponding to the signatures are matched against the leaves of the composite key tree in question, and the total combined weight of all children is calculated for every intermediary node. If all thresholds are satisfied, the composite key requirement is considered to be met.