pub struct Base58BtcMultibase;
Expand description
Base58Btc Multibase protocol.
The signer must sent back the signature encoded with multibase using
the Base58Btc
base.
Implementations§
Source§impl Base58BtcMultibase
impl Base58BtcMultibase
Sourcepub fn encode_signature(signature: &[u8]) -> Vec<u8> ⓘ
pub fn encode_signature(signature: &[u8]) -> Vec<u8> ⓘ
Encode the signature with multibase using the Base58Btc
base as
required by this protocol.
pub fn decode_signature( encoded_signature: &[u8], ) -> Result<Vec<u8>, InvalidProtocolSignature>
Trait Implementations§
Source§impl Clone for Base58BtcMultibase
impl Clone for Base58BtcMultibase
Source§fn clone(&self) -> Base58BtcMultibase
fn clone(&self) -> Base58BtcMultibase
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Base58BtcMultibase
impl Debug for Base58BtcMultibase
Source§impl<A> SignatureProtocol<A> for Base58BtcMultibase
impl<A> SignatureProtocol<A> for Base58BtcMultibase
fn encode_signature( &self, _algorithm: A, signature: Vec<u8>, ) -> Result<Vec<u8>, MessageSignatureError>
fn decode_signature<'s>( &self, encoded_signature: &'s [u8], ) -> Result<Cow<'s, [u8]>, InvalidProtocolSignature>
fn prepare_message<'b>(&self, bytes: &'b [u8]) -> Cow<'b, [u8]>
fn prepare_messages<'b>(&self, bytes: &'b [Vec<u8>]) -> Cow<'b, [Vec<u8>]>
impl Copy for Base58BtcMultibase
Auto Trait Implementations§
impl Freeze for Base58BtcMultibase
impl RefUnwindSafe for Base58BtcMultibase
impl Send for Base58BtcMultibase
impl Sync for Base58BtcMultibase
impl Unpin for Base58BtcMultibase
impl UnwindSafe for Base58BtcMultibase
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
Source§impl<T> ResourceProvider<()> for T
impl<T> ResourceProvider<()> for T
Source§fn get_resource(&self) -> &()
fn get_resource(&self) -> &()
Returns a reference to the resource of type
T
.