Skip to main content

Matter

Trait Matter 

Source
pub trait Matter: Any {
Show 13 methods // Required methods fn code(&self) -> &str; fn raw(&self) -> &[u8] ⓘ; fn qb64(&self) -> String; fn qb64b(&self) -> Vec<u8> ⓘ; fn qb2(&self) -> Vec<u8> ⓘ; fn soft(&self) -> &str; fn full_size(&self) -> usize; fn size(&self) -> usize; fn is_transferable(&self) -> bool; fn is_digestive(&self) -> bool; fn is_prefixive(&self) -> bool; fn is_special(&self) -> bool; fn as_any(&self) -> &dyn Any;
}
Expand description

Matter is a trait for fully qualified cryptographic material. Implementations provide various specialized crypto material types.

Required Methods§

Source

fn code(&self) -> &str

Returns the hard part of the derivation code

Source

fn raw(&self) -> &[u8] ⓘ

Returns raw crypto material (without derivation code)

Source

fn qb64(&self) -> String

Returns base64 fully qualified representation

Source

fn qb64b(&self) -> Vec<u8> ⓘ

Returns base64 fully qualified representation

Source

fn qb2(&self) -> Vec<u8> ⓘ

Returns binary fully qualified representation

Source

fn soft(&self) -> &str

Soft portion of qb64 value

Source

fn full_size(&self) -> usize

Return the full size of this Matter instance

Source

fn size(&self) -> usize

Calculate the populated size

Source

fn is_transferable(&self) -> bool

Returns whether the derivation code is transferable

Source

fn is_digestive(&self) -> bool

Returns whether the code represents a digest

Source

fn is_prefixive(&self) -> bool

Returns whether the code represents a prefix

Source

fn is_special(&self) -> bool

Returns whether the code represents a prefix

Source

fn as_any(&self) -> &dyn Any

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§