Programming Model
Discriminador
📖O que é
An 8-byte identifier prepended to account data and instruction data to distinguish types. Anchor computes it as the first 8 bytes of `sha256('account:<AccountName>')` for accounts and `sha256('global:<function_name>')` for instructions. Discriminators prevent type cosplay attacks by ensuring data is deserialized as the correct type.
Sua exploração
0 termos visitados no totalTermos relacionados explorados0/3
Termos Relacionados
Framework AnchorDev Tools
The most popular framework for building Solana programs in Rust. Anchor provides macros (#…
Ver termo →InstruçãoProgramming Model
A single operation within a transaction that invokes a program. An instruction specifies: …
Ver termo →Account DataProgramming Model
The byte array stored in an account that holds program-specific state. Data is typically s…
Ver termo →