Struct libsecp256k1::PublicKey
source · pub struct PublicKey(_);
Expand description
Public key on a secp256k1 curve.
Implementations§
source§impl PublicKey
impl PublicKey
pub fn from_secret_key_with_context(
seckey: &SecretKey,
context: &ECMultGenContext
) -> PublicKey
pub fn from_secret_key(seckey: &SecretKey) -> PublicKey
pub fn parse_slice(
p: &[u8],
format: Option<PublicKeyFormat>
) -> Result<PublicKey, Error>
pub fn parse(p: &[u8; 65]) -> Result<PublicKey, Error>
pub fn parse_compressed(p: &[u8; 33]) -> Result<PublicKey, Error>
pub fn serialize(&self) -> [u8; 65]
pub fn serialize_compressed(&self) -> [u8; 33]
pub fn tweak_add_assign_with_context(
&mut self,
tweak: &SecretKey,
context: &ECMultContext
) -> Result<(), Error>
pub fn tweak_add_assign(&mut self, tweak: &SecretKey) -> Result<(), Error>
pub fn tweak_mul_assign_with_context(
&mut self,
tweak: &SecretKey,
context: &ECMultContext
) -> Result<(), Error>
pub fn tweak_mul_assign(&mut self, tweak: &SecretKey) -> Result<(), Error>
pub fn combine(keys: &[PublicKey]) -> Result<Self, Error>
Trait Implementations§
source§impl<'de> Deserialize<'de> for PublicKey
impl<'de> Deserialize<'de> for PublicKey
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more