Struct noise_sv2::Certificate [−][src]
pub struct Certificate {
pub public_key: StaticPublicKeyFormat,
// some fields omitted
}
Expand description
Certificate is intended to be serialized and deserialized from/into a file and loaded on the
stratum server.
Second use of the certificate is to build it from SignatureNoiseMessage
and check its
validity
Fields
public_key: StaticPublicKeyFormat
Implementations
See https://docs.rs/ed25519-dalek/1.0.0-pre.3/ed25519_dalek/struct.PublicKey.html on details for the strict verification
pub fn from_noise_message(
signature_noise_message: SignatureNoiseMessage,
pubkey: StaticPublicKey,
authority_public_key: PublicKey
) -> Self
Trait Implementations
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for Certificate
impl Send for Certificate
impl Sync for Certificate
impl Unpin for Certificate
impl UnwindSafe for Certificate
Blanket Implementations
Mutably borrows from an owned value. Read more