[−][src]Struct ursa::signatures::secp256k1::EcdsaSecp256k1Sha256
Methods
impl EcdsaSecp256k1Sha256
[src]
pub fn normalize_s(&self, signature: &mut [u8]) -> Result<(), CryptoError>
[src]
Trait Implementations
impl SignatureScheme for EcdsaSecp256k1Sha256
[src]
fn new() -> Self
[src]
fn keypair(
&self,
option: Option<KeyGenOption>
) -> Result<(PublicKey, PrivateKey), CryptoError>
[src]
&self,
option: Option<KeyGenOption>
) -> Result<(PublicKey, PrivateKey), CryptoError>
fn sign(&self, message: &[u8], sk: &PrivateKey) -> Result<Vec<u8>, CryptoError>
[src]
fn verify(
&self,
message: &[u8],
signature: &[u8],
pk: &PublicKey
) -> Result<bool, CryptoError>
[src]
&self,
message: &[u8],
signature: &[u8],
pk: &PublicKey
) -> Result<bool, CryptoError>
fn signature_size() -> usize
[src]
fn private_key_size() -> usize
[src]
fn public_key_size() -> usize
[src]
impl EcdsaPublicKeyHandler for EcdsaSecp256k1Sha256
[src]
fn public_key_compressed(&self, pk: &PublicKey) -> Vec<u8>
[src]
Returns the compressed bytes
fn public_key_uncompressed(&self, pk: &PublicKey) -> Vec<u8>
[src]
Returns the uncompressed bytes
fn parse(&self, data: &[u8]) -> Result<PublicKey, CryptoError>
[src]
Read raw bytes into key struct. Can be either compressed or uncompressed
fn public_key_uncompressed_size() -> usize
[src]
Auto Trait Implementations
impl Send for EcdsaSecp256k1Sha256
impl Unpin for EcdsaSecp256k1Sha256
impl Sync for EcdsaSecp256k1Sha256
impl UnwindSafe for EcdsaSecp256k1Sha256
impl RefUnwindSafe for EcdsaSecp256k1Sha256
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self