Struct wasm_sign::Config
[−]
[src]
pub struct Config { /* fields omitted */ }
Configuration structure
Methods
impl Config
[src]
fn new() -> Config
[src]
fn sign<'a>(
&self,
pkey: &'a PKey<Private>,
bytecode: &[u8]
) -> Result<Vec<u8>, Error>
[src]
&self,
pkey: &'a PKey<Private>,
bytecode: &[u8]
) -> Result<Vec<u8>, Error>
Signing the bytecode using the private key
fn verify<'a>(
&self,
pkey: &'a PKey<Public>,
signed_bytecode: &[u8]
) -> Result<bool, Error>
[src]
&self,
pkey: &'a PKey<Public>,
signed_bytecode: &[u8]
) -> Result<bool, Error>
Verifying the signature at the end of the bytecode using the public key