A container for edge envelopes on a document.
Edges stores pre-constructed edge envelopes keyed by their digest, mirroring the Attachments container but for edges as defined in BCR-2026-003.
Edges
Attachments
Equivalent to Rust's Edges struct in src/extension/edge/edges.rs.
src/extension/edge/edges.rs
Creates a new empty edges container.
Adds a pre-constructed edge envelope.
The edge envelope to add
Retrieves an edge by its digest.
The digest of the edge to retrieve
The edge envelope if found, or undefined
Removes an edge by its digest.
The digest of the edge to remove
The removed edge envelope if found, or undefined
Removes all edges from the container.
Returns whether the container has no edges.
Returns the number of edges in the container.
Returns an iterator over all edge envelopes.
Check equality with another Edges container.
Adds all edges as 'edge' assertion envelopes to the given envelope.
'edge'
The envelope to add edges to
A new envelope with all edges added as assertions
Static
Extracts edges from an envelope's 'edge' assertions.
Equivalent to Rust's Edges::try_from_envelope().
Edges::try_from_envelope()
The envelope to extract edges from
A new Edges container with the envelope's edges
A container for edge envelopes on a document.
Edgesstores pre-constructed edge envelopes keyed by their digest, mirroring theAttachmentscontainer but for edges as defined in BCR-2026-003.Equivalent to Rust's
Edgesstruct insrc/extension/edge/edges.rs.