pub fn write_attachment_commitments_to_memory(note_index: NoteIdx) -> Vec<Word>
Writes attachment commitments to memory and returns them as protocol words.