mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-09 08:43:12 +00:00
add docs
This commit is contained in:
parent
ed00876800
commit
bfbd50e8cb
@ -12,6 +12,11 @@ pub struct ProgramInput<T> {
|
|||||||
pub instruction: T,
|
pub instruction: T,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// A 32-byte seed used to compute a *Program-Derived AccountId* (PDA).
|
||||||
|
///
|
||||||
|
/// Each program can derive up to `2^32` unique account IDs by choosing different
|
||||||
|
/// seeds. PDAs allow programs to control namespaced account identifiers without
|
||||||
|
/// collisions between programs.
|
||||||
#[derive(Serialize, Deserialize, Clone)]
|
#[derive(Serialize, Deserialize, Clone)]
|
||||||
#[cfg_attr(any(feature = "host", test), derive(Debug, PartialEq, Eq))]
|
#[cfg_attr(any(feature = "host", test), derive(Debug, PartialEq, Eq))]
|
||||||
pub struct PdaSeed([u8; 32]);
|
pub struct PdaSeed([u8; 32]);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user