TransactionWithSignatures

An interface for transactions containing signatures, with logic for signature verification.

Inheritors

Properties

Link copied to clipboard
abstract val id: SecureHash
Link copied to clipboard

Specifies all the public keys that require signatures for the transaction to be valid.

Link copied to clipboard

List of signatures on this transaction.

Functions

Link copied to clipboard

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 verifyRequiredSignatures instead.

Link copied to clipboard
abstract fun getKeyDescriptions(keys: Set<PublicKey>): List<String>

Get a human readable description of where signatures are required from, and are missing, to assist in debugging the underlying cause.

Link copied to clipboard

Return the PublicKeys for which we still need signatures.

Link copied to clipboard
Link copied to clipboard
open fun verifyRequiredSignatures(): <Error class: unknown class>

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 requiredSigningKeys set.

Link copied to clipboard
open fun verifySignaturesExcept(vararg allowedToBeMissing: PublicKey)
open fun verifySignaturesExcept(allowedToBeMissing: Collection<PublicKey>)

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 requiredSigningKeys set.