Struct glycos::graph::cryptograph::Vertex [−][src]
pub struct Vertex {
owner: PublicKey,
owner_recogniser: Recogniser,
owner_cek: Option<Vec<u8>>,
recogniser: Recogniser,
acl: VertexControlList,
acl_ephemeral: PublicKey,
value: Option<Vec<u8>>,
pub clock: u32,
signature: SchnorrSignature,
}Expand description
Represents a sealed vertex.
It can be opened to a primitive Vertex by calling decrypt.
Fields
owner: PublicKeyowner_recogniser: Recogniserowner_cek: Option<Vec<u8>>recogniser: Recogniseracl: VertexControlListacl_ephemeral: PublicKeyvalue: Option<Vec<u8>>clock: u32signature: SchnorrSignatureImplementations
Verifies that the signature of this Vertex is correct.
Returns true when the signature is valid, false otherwise. Call this method after receiving a vertex, and do not consume it if it’s invalid.
Checks sk’s eligibility for appending to this vertex.
When eligible, it returns the private key with which an Edge can be created using
EdgeBuilder.
Decrypts the vertex with the knowledge of the ephemeral key.
Decrypts this Vertex to a primitives::Vertex
if master is listed in the access control list.
Otherwise Err(ring::error::Unspecified) is returned
Serializes the edge.
Deserializes the edge.
Return the identifier
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Vertex
impl UnwindSafe for Vertex
Blanket Implementations
Mutably borrows from an owned value. Read more
