Skip to main content
This is unreleased documentation for the main (development) branch of crypto-glue.

decode_engine

Function decode_engine 

Source
pub fn decode_engine<E: Engine, T: AsRef<[u8]>>(
    input: T,
    engine: &E,
) -> Result<Vec<u8>, DecodeError>
👎Deprecated since 0.21.0:

Use Engine::decode

Expand description

Decode from string reference as octets using the specified Engine.

See Engine::decode. Returns a Result containing a Vec<u8>.