Struct secp256k1_zkp::Generator [−][src]
pub struct Generator(_);
Represents a generator on the secp256k1 curve.
A generator is a public key internally but has a slightly different serialization with the first byte being tweaked.
Implementations
impl Generator
[src]
pub fn serialize(&self) -> [u8; 33]
[src]
Serialize the generator to a byte array.
pub fn from_slice(bytes: &[u8]) -> Result<Self, Error>
[src]
Parse a generator from a slice of bytes.
pub fn new_blinded<C: Signing>(
secp: &Secp256k1<C>,
tag: Tag,
blinding_factor: SecretKey
) -> Self
[src]
secp: &Secp256k1<C>,
tag: Tag,
blinding_factor: SecretKey
) -> Self
Trait Implementations
impl Clone for Generator
[src]
impl Copy for Generator
[src]
impl Debug for Generator
[src]
impl<'de> Deserialize<'de> for Generator
[src]
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
[src]
impl Display for Generator
[src]
impl Eq for Generator
[src]
impl FromStr for Generator
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Error>
[src]
impl Hash for Generator
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl LowerHex for Generator
[src]
impl PartialEq<Generator> for Generator
[src]
impl Serialize for Generator
[src]
impl StructuralEq for Generator
[src]
impl StructuralPartialEq for Generator
[src]
Auto Trait Implementations
impl RefUnwindSafe for Generator
impl Send for Generator
impl Sync for Generator
impl Unpin for Generator
impl UnwindSafe for Generator
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
pub 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>,