Trait solana_sdk::sanitize::Sanitize[][src]

pub trait Sanitize {
    pub fn sanitize(&self) -> Result<(), SanitizeError> { ... }
}

Trait for sanitizing values and members of over the wire messages. Implementation should recursively decent through the data structure and sanitize all struct members and enum clauses. Sanitize excludes signature verification checks, those are handled by another pass. Sanitize checks should include but are not limited too:

Provided methods

pub fn sanitize(&self) -> Result<(), SanitizeError>[src]

Loading content...

Implementations on Foreign Types

impl<T> Sanitize for Vec<T, Global> where
    T: Sanitize
[src]

Loading content...

Implementors

impl Sanitize for Hash[src]

impl Sanitize for CompiledInstruction[src]

impl Sanitize for Message[src]

impl Sanitize for Pubkey[src]

impl Sanitize for Signature[src]

impl Sanitize for Transaction[src]

Loading content...