Adds the given attachment to this note. More specifically, sets both the attachmentIdentifier and the attachment reference,
since they both need to be done separately now that we aren't using anonymous keys.
Parameters: attachment -
Removes the current attachment, if any. More specifically, clears both the attachmentIdentifier and the attachment reference,
since they both need to be done separately now that we aren't using anonymous keys.