Struct signatory_secp256k1::ECDSASigner [−][src]
pub struct ECDSASigner(_);
ECDSA signature provider for the secp256k1 crate
Methods
impl ECDSASigner
[src]
impl ECDSASigner
pub fn from_bytes(bytes: &[u8]) -> Result<Self, Error>
[src]
pub fn from_bytes(bytes: &[u8]) -> Result<Self, Error>
Create a new secp256k1 signer from the given private key
Trait Implementations
impl Signer<Secp256k1> for ECDSASigner
[src]
impl Signer<Secp256k1> for ECDSASigner
fn public_key(&self) -> Result<PublicKey, Error>
[src]
fn public_key(&self) -> Result<PublicKey, Error>
Return the public key that corresponds to the private key for this signer
impl RawDigestSigner<Secp256k1> for ECDSASigner
[src]
impl RawDigestSigner<Secp256k1> for ECDSASigner
fn sign_raw_digest_der(
&self,
msg: &GenericArray<u8, U32>
) -> Result<DERSignature, Error>
[src]
fn sign_raw_digest_der(
&self,
msg: &GenericArray<u8, U32>
) -> Result<DERSignature, Error>
Compute an ASN.1 DER-encoded signature of the given 32-byte SHA-256 digest
fn sign_raw_digest_fixed(
&self,
msg: &GenericArray<u8, U32>
) -> Result<FixedSignature, Error>
[src]
fn sign_raw_digest_fixed(
&self,
msg: &GenericArray<u8, U32>
) -> Result<FixedSignature, Error>
Compute a compact, fixed-sized signature of the given 32-byte SHA-256 digest
Auto Trait Implementations
impl Send for ECDSASigner
impl Send for ECDSASigner
impl Sync for ECDSASigner
impl Sync for ECDSASigner