VestPublicInput

Trait VestPublicInput 

Source
pub trait VestPublicInput: VestInput {
    // Required method
    exec fn as_byte_slice(&self) -> res : &[u8] ;
}
Expand description

Trait for types that can be used as input for Vest parsers, roughly corresponding to byte buffers. VestPublicInput can be set using transparent bytes, so it cannot provide type abstraction for side-channel security.

Required Methods§

Source

exec fn as_byte_slice(&self) -> res : &[u8]

ensures
res@ == self@,

Returns a byte slice with the contents of the buffer

Implementations on Foreign Types§

Source§

impl<'a> VestPublicInput for &'a [u8]

Source§

exec fn as_byte_slice(&self) -> &[u8]

Implementors§