getOrThrowDocument

Extract just the document from a successful DidCreationResult, or throw with detailed error.

Example:

val document = trustWeave.createDid { method("key") }.getOrThrowDocument()