Skip to main content

pinocchio_memo_program/
lib.rs

1//! A pinocchio-based Memo (aka 'p-memo') program.
2//!
3//! The Memo program is a simple program that validates a string of UTF-8 encoded
4//! characters and verifies that any accounts provided are signers of the transaction.
5//! The program also logs the memo, as well as any verified signer addresses, to the
6//! transaction log, so that anyone can easily observe memos and know they were
7//! approved by zero or more addresses by inspecting the transaction log from a
8//! trusted provider.
9
10#![no_std]
11
12use {
13    crate::entrypoint::process_instruction,
14    pinocchio::{lazy_program_entrypoint, no_allocator, nostd_panic_handler},
15};
16
17mod entrypoint;
18
19// Process the input lazily.
20lazy_program_entrypoint!(process_instruction);
21// Disable the memory allocator.
22no_allocator!();
23// Use a `no_std` panic handler.
24nostd_panic_handler!();