INNER CODE UNIT · Rust
public_key
matrix-org/vodozemac · src/ecies/mod.rs:264
pub fn public_key(&self) -> Curve25519PublicKey {
Curve25519PublicKey::from(&self.secret_key)
}
}
/// An established ECIES session.
///
/// This session can be used to encrypt and decrypt messages between the two
/// sides of the channel.
#[derive(Zeroize, ZeroizeOnDrop)]
pub struct EstablishedEcies {
/// Our own Curve25519 public key which was used to establish the ECIES
/// channel.
#[zeroize(skip)]
our_public_key: Curve25519PublicKey,
/// The other side's Curve25519 public key which was used to establish the
/// ECIES channel.