pub struct Base58Btc;
Expand description
Base58Btc protocol.
The signer must sent back the signature encoded in base58 (bitcoin alphabet).
Implementations§
Trait Implementations§
Source§impl<A> SignatureProtocol<A> for Base58Btc
impl<A> SignatureProtocol<A> for Base58Btc
Source§fn encode_signature(
&self,
_algorithm: A,
signature: Vec<u8>,
) -> Result<Vec<u8>, MessageSignatureError>
fn encode_signature( &self, _algorithm: A, signature: Vec<u8>, ) -> Result<Vec<u8>, MessageSignatureError>
Encode the signature in base58 (bitcoin alphabet) as required by this protocol.
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 Base58Btc
Auto Trait Implementations§
impl Freeze for Base58Btc
impl RefUnwindSafe for Base58Btc
impl Send for Base58Btc
impl Sync for Base58Btc
impl Unpin for Base58Btc
impl UnwindSafe for Base58Btc
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
.