pub struct Signature(_);Expand description
Cryptographic signature.
Trait Implementations§
source§impl EcSig for Signature
impl EcSig for Signature
const COMPRESSED_LEN: usize = 64usize
type Pk = PublicKey
type Compressed = [u8; 64]
fn to_sig_compressed(&self) -> Self::Compressed
fn from_sig_compressed(sig: Self::Compressed) -> Result<Self, EcSigInvalid>
fn from_sig_compressed_slice(slice: &[u8]) -> Result<Self, EcSigInvalid>
fn verify( &self, pk: &Self::Pk, msg: impl AsRef<[u8]> ) -> Result<(), EcVerifyError>
source§impl MultiDisplay<Encoding> for Signature
impl MultiDisplay<Encoding> for Signature
source§impl PartialEq<Signature> for Signature
impl PartialEq<Signature> for Signature
source§impl Wrapper for Signature
impl Wrapper for Signature
source§fn from_inner(inner: Self::Inner) -> Self
fn from_inner(inner: Self::Inner) -> Self
Instantiates wrapper type with the inner data
source§fn as_inner(&self) -> &Self::Inner
fn as_inner(&self) -> &Self::Inner
Returns reference to the inner representation for the wrapper type
source§fn into_inner(self) -> Self::Inner
fn into_inner(self) -> Self::Inner
Unwraps the wrapper returning the inner type
impl Copy for Signature
impl Eq for Signature
impl StructuralEq for Signature
impl StructuralPartialEq for Signature
Auto Trait Implementations§
impl RefUnwindSafe for Signature
impl Send for Signature
impl Sync for Signature
impl Unpin for Signature
impl UnwindSafe for Signature
Blanket Implementations§
source§impl<T> Base32Len for Twhere
T: AsRef<[u8]>,
impl<T> Base32Len for Twhere T: AsRef<[u8]>,
source§fn base32_len(&self) -> usize
fn base32_len(&self) -> usize
Calculate the base32 serialized length
source§impl<T> ToBase32 for Twhere
T: AsRef<[u8]>,
impl<T> ToBase32 for Twhere T: AsRef<[u8]>,
source§fn write_base32<W>(&self, writer: &mut W) -> Result<(), <W as WriteBase32>::Err>where
W: WriteBase32,
fn write_base32<W>(&self, writer: &mut W) -> Result<(), <W as WriteBase32>::Err>where W: WriteBase32,
Encode as base32 and write it to the supplied writer
Implementations shouldn’t allocate.