AttachmentTrustCalculator

Calculates the trust of attachments stored in the node.

Functions

Link copied to clipboard
abstract fun calculate(attachment: Attachment): Boolean

Establishes whether an attachment should be trusted. This logic is required in order to verify transactions, as transaction verification should only be carried out using trusted attachments.

Link copied to clipboard

Calculates the trust of attachments stored within the node. Applies the same logic as calculate when calculating the trust of an attachment.