StaticnewCreate a new XIDDocument with the given options.
StaticfromGet the XID.
Get the resolution methods.
Add a resolution method.
Remove a resolution method.
Get all keys.
Remove a key.
Check if the given signing public key is the inception signing key.
Matches Rust: is_inception_signing_key(&self, signing_public_key: &SigningPublicKey) -> bool
Get the inception key, if it exists in the document.
Get the inception private keys, if available.
Get the encryption key (encapsulation public key) for this document.
Prefers the inception key for encryption. If no inception key is available, falls back to the first key in the document.
Remove the inception key from the document.
Set the name (nickname) for a key identified by its public keys.
Get the inception signing public key, if it exists.
Get the verification (signing) key for this document. Prefers the inception key. Falls back to the first key.
StaticextractGet the private key envelope for a specific key, optionally decrypting it.
Optionalpassword: stringCheck that the document contains a key with the given public keys. Throws if not found.
Check that the document contains a delegate with the given XID. Throws if not found.
Get the attachments container.
Add an attachment with the specified payload and metadata.
OptionalconformsTo: stringCheck if the document has any attachments.
Remove all attachments.
Get an attachment by its digest.
Remove an attachment by its digest.
Get the edges container (read-only).
Get the edges container (mutable).
Add an edge envelope.
Get an edge by its digest.
Remove an edge by its digest.
Remove all edges.
Check if the document has any edges.
Check if the document is empty (no keys, delegates, services, or provenance).
Get all delegates.
Get all services.
Remove a service.
Check service consistency.
Check if any service references the given key.
Get the provenance mark.
Get the provenance generator.
Set the provenance.
Set provenance with generator.
Convert to envelope with options.
StaticfromExtract an XIDDocument from an envelope.
Optionalpassword: Uint8Array<ArrayBufferLike>Create a signed envelope.
Create a signed envelope with private key options.
Get the reference for this document.
Clone this XIDDocument.
StatictryTry to extract from envelope (alias for fromEnvelope with default options).
Represents an XID document.