@blockchaincommons/envelope - v1.0.0-beta.4
    Preparing search index...

    Function attachmentVendor

    • Returns the vendor of an attachment envelope: the object's 'vendor' read by subject extraction (the reference's extract_object_for_predicate), so a salted or otherwise annotated vendor is read too; an empty vendor is a vendor.

      Parameters

      Returns string

      EnvelopeError with code InvalidAttachment when the envelope is not an assertion; NonexistentPredicate / AmbiguousPredicate when there is not exactly one vendor; Cbor (dcbor error: <Display>) when it is not text.