gpl-core 1.0.0

Gum Protocol Core (GPL Core)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use anchor_lang::prelude::*;

#[account]
pub struct User {
    // The public key of the wallet that owns this User
    // We use this PDA as a seed to derive other downstream
    // accounts.
    //
    // User -> Profile -> Post -> [Connection, Reaction]
    pub authority: Pubkey,
    pub random_hash: [u8; 32],
}

impl User {
    pub const LEN: usize = 8 + std::mem::size_of::<Self>();
}