public static class TransactionWithSignatures.DefaultImpls
An interface for transactions containing signatures, with logic for signature verification.
Modifier and Type | Method and Description |
---|---|
static void |
checkSignaturesAreValid(TransactionWithSignatures $this)
Mathematically validates the signatures that are present on this transaction. This does not imply that
the signatures are by the right keys, or that there are sufficient signatures, just that they aren't
corrupt. If you use this function directly you'll need to do the other checks yourself. Probably you
want
TransactionWithSignatures.verifyRequiredSignatures instead. |
static java.util.Set<java.security.PublicKey> |
getMissingSigners(TransactionWithSignatures $this)
Return the PublicKeys for which we still need signatures.
|
static NonExistentClass |
verifyRequiredSignatures(TransactionWithSignatures $this)
Verifies the signatures on this transaction and throws if any are missing. In this context, "verifying" means
checking they are valid signatures and that their public keys are in the
TransactionWithSignatures.getRequiredSigningKeys set. |
static void |
verifySignaturesExcept(TransactionWithSignatures $this,
java.security.PublicKey allowedToBeMissing)
Verifies the signatures on this transaction and throws if any are missing which aren't passed as parameters.
In this context, "verifying" means checking they are valid signatures and that their public keys are in
the
TransactionWithSignatures.getRequiredSigningKeys set. |
static void |
verifySignaturesExcept(TransactionWithSignatures $this,
java.util.Collection<? extends java.security.PublicKey> allowedToBeMissing)
Verifies the signatures on this transaction and throws if any are missing which aren't passed as parameters.
In this context, "verifying" means checking they are valid signatures and that their public keys are in
the
TransactionWithSignatures.getRequiredSigningKeys set. |
public static NonExistentClass verifyRequiredSignatures(TransactionWithSignatures $this)
Verifies the signatures on this transaction and throws if any are missing. In this context, "verifying" means
checking they are valid signatures and that their public keys are in the TransactionWithSignatures.getRequiredSigningKeys
set.
TransactionWithSignatures.getRequiredSigningKeys
public static void verifySignaturesExcept(TransactionWithSignatures $this, java.security.PublicKey allowedToBeMissing)
Verifies the signatures on this transaction and throws if any are missing which aren't passed as parameters.
In this context, "verifying" means checking they are valid signatures and that their public keys are in
the TransactionWithSignatures.getRequiredSigningKeys
set.
Normally you would not provide any keys to this function, but if you're in the process of building a partial transaction and you want to access the contents before you've signed it, you can specify your own keys here to bypass that check.
TransactionWithSignatures.getRequiredSigningKeys
public static void verifySignaturesExcept(TransactionWithSignatures $this, java.util.Collection<? extends java.security.PublicKey> allowedToBeMissing)
Verifies the signatures on this transaction and throws if any are missing which aren't passed as parameters.
In this context, "verifying" means checking they are valid signatures and that their public keys are in
the TransactionWithSignatures.getRequiredSigningKeys
set.
Normally you would not provide any keys to this function, but if you're in the process of building a partial transaction and you want to access the contents before you've signed it, you can specify your own keys here to bypass that check.
TransactionWithSignatures.getRequiredSigningKeys
public static void checkSignaturesAreValid(TransactionWithSignatures $this)
Mathematically validates the signatures that are present on this transaction. This does not imply that
the signatures are by the right keys, or that there are sufficient signatures, just that they aren't
corrupt. If you use this function directly you'll need to do the other checks yourself. Probably you
want TransactionWithSignatures.verifyRequiredSignatures
instead.
TransactionWithSignatures.verifyRequiredSignatures
public static java.util.Set<java.security.PublicKey> getMissingSigners(TransactionWithSignatures $this)
Return the PublicKeys for which we still need signatures.