Vault

Trait Vault 

Source
pub trait Vault {
    // Required methods
    fn new(
        public: Option<PublicKey>,
        private: Option<PrivateKey>,
    ) -> Result<Self>
       where Self: Sized;
    fn create(
        &self,
        password: SecretSlice<u8>,
        data: &mut [u8],
    ) -> Result<String>;
    fn view(
        &self,
        password: &[u8],
        data: &[u8],
        fingerprint: &str,
    ) -> Result<String>;
}

Required Methods§

Source

fn new(public: Option<PublicKey>, private: Option<PrivateKey>) -> Result<Self>
where Self: Sized,

Source

fn create(&self, password: SecretSlice<u8>, data: &mut [u8]) -> Result<String>

Source

fn view( &self, password: &[u8], data: &[u8], fingerprint: &str, ) -> Result<String>

Implementors§