calculate

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.

Attachments are trusted if one of the following is true:

  • They are uploaded by a trusted uploader

  • There is another attachment in the attachment store, that is trusted and is signed by at least one key that the given attachment is also signed with