Struct nucypher_core::NodeMetadataPayload
source · [−]pub struct NodeMetadataPayload {
pub staker_address: Address,
pub domain: String,
pub timestamp_epoch: u32,
pub verifying_key: PublicKey,
pub encrypting_key: PublicKey,
pub certificate_bytes: Box<[u8]>,
pub host: String,
pub port: u16,
pub decentralized_identity_evidence: Option<[u8; 65]>,
}Expand description
Node metadata.
Fields
staker_address: AddressThe staker’s Ethereum address.
domain: StringThe network identifier.
timestamp_epoch: u32The timestamp of the metadata creation.
verifying_key: PublicKeyThe node’s verifying key.
encrypting_key: PublicKeyThe node’s encrypting key.
certificate_bytes: Box<[u8]>The node’s SSL certificate (serialized in PEM format).
host: StringThe hostname of the node’s REST service.
port: u16The port of the node’s REST service.
decentralized_identity_evidence: Option<[u8; 65]>The node’s verifying key signed by the private key corresponding to the worker address.
Implementations
Derives the address corresponding to the public key that was used
to create decentralized_identity_evidence.
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 NodeMetadataPayload
impl Send for NodeMetadataPayload
impl Sync for NodeMetadataPayload
impl Unpin for NodeMetadataPayload
impl UnwindSafe for NodeMetadataPayload
Blanket Implementations
Mutably borrows from an owned value. Read more