Struct signatory::curve::secp256k1::Secp256k1 [−][src]
pub struct Secp256k1;
The secp256k1 elliptic curve: y² = x³ + 7 over a ~256-bit prime field
Trait Implementations
impl Copy for Secp256k1
[src]
impl Copy for Secp256k1
impl Clone for Secp256k1
[src]
impl Clone for Secp256k1
fn clone(&self) -> Secp256k1
[src]
fn clone(&self) -> Secp256k1
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for Secp256k1
[src]
impl Debug for Secp256k1
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for Secp256k1
[src]
impl Default for Secp256k1
impl Eq for Secp256k1
[src]
impl Eq for Secp256k1
impl PartialEq for Secp256k1
[src]
impl PartialEq for Secp256k1
fn eq(&self, other: &Secp256k1) -> bool
[src]
fn eq(&self, other: &Secp256k1) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Hash for Secp256k1
[src]
impl Hash for Secp256k1
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl WeierstrassCurve for Secp256k1
[src]
impl WeierstrassCurve for Secp256k1
const CURVE_KIND: WeierstrassCurveKind
CURVE_KIND: WeierstrassCurveKind = WeierstrassCurveKind::Secp256k1
Elliptic curve kind
type PrivateScalarSize = U32
Random 256-bit (32-byte) private scalar
type CompressedPointSize = U33
Size of a compressed elliptic curve point serialized using
Octet-String-to-Elliptic-Curve-Point
encoding
type UntaggedPointSize = U64
Size of a raw uncompressed elliptic curve point sans the 0x04
tag byte added in the UncompressedPointSize
value.
type UncompressedPointSize = U65
Size of a raw uncompressed elliptic curve point (i.e sans the 0x04
tag added by Octet-String-to-Elliptic-Curve-Point
encoding)
type DERSignatureMaxSize = U73
Maximum size of an ASN.1 DER encoded signature
type FixedSignatureSize = U64
Concatenated r || s
values (32-bytes each)