Module bdk_chain::bitcoin::base64::prelude

Expand description

Preconfigured engines for common use cases.

These are re-exports of const engines in crate::engine::general_purpose, renamed with a BASE64_ prefix for those who prefer to use the entire path to a name.

§Examples

use base64::prelude::{Engine as _, BASE64_STANDARD_NO_PAD};

assert_eq!("c29tZSBieXRlcw", &BASE64_STANDARD_NO_PAD.encode(b"some bytes"));

Constants§

Traits§

  • An Engine provides low-level encoding and decoding operations that all other higher-level parts of the API use. Users of the library will generally not need to implement this.