Struct glycos::graph::cryptograph::Edge [−][src]
pub struct Edge {
acl_ephemeral: PublicKey,
acl: Vec<(PublicKey, Vec<u8>)>,
spo: Vec<u8>,
signature: AbeRingSignature,
}Expand description
Represents a sealed Edge from a Vertex \(V_a\) to \(V_b\).
\(V_a\) and \(V_b\) are a priori unknown; the Edge can be opened through Edge::decrypt.
Creating a new Edge can be done through EdgeBuilder.
Fields
acl_ephemeral: PublicKeyacl: Vec<(PublicKey, Vec<u8>)>spo: Vec<u8>signature: AbeRingSignatureImplementations
With the correct PrivateKey retrieved through the associated Vertex’s check_acl()
method, this decrypts the sealed Edge to a primitives::Edge.
Serializes the Edge.
Deserializes an Edge from a vector of bytes.
Verifies that the signature of this Edge is correct.
Returns true when the signature is valid, false otherwise. Call this method after receiving an edge, and do not consume it if it’s invalid.
Verifies whether v is the valid subject of this Edge.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Edge
impl UnwindSafe for Edge
Blanket Implementations
Mutably borrows from an owned value. Read more
