shortId
shortId: (format?: "short" | "full" | "ur") => string
summary
summary: (maxLength?: number) => string
cborBytes
cborBytes: () => Uint8Array
diagnostic
diagnostic: () => string
addOptionalAssertionEnvelope
addNonemptyStringAssertion
addAssertionEnvelopeIf
addAssertionEnvelopeIf: ( condition: boolean, assertionEnvelope: Envelope,) => Envelope addAssertionEnvelopeSalted
addAssertionEnvelopeSalted: ( assertionEnvelope: Envelope, salted: boolean,) => Envelope addOptionalAssertionEnvelopeSalted
addOptionalAssertionEnvelopeSalted: ( assertionEnvelope: Envelope | undefined, salted: boolean,) => Envelope elideRemovingSetWithAction
elideRemovingArrayWithAction
elideRemovingTargetWithAction
elideRevealingSetWithAction
elideRevealingArrayWithAction
elideRevealingTargetWithAction
isIdenticalTo
isIdenticalTo: (other: Envelope) => boolean tryLeaf
tryLeaf: () => Cbor
extractString: () => string
extractNumber: () => number
extractBoolean: () => boolean
extractBytes: () => Uint8Array
extractSubject: <T>(decoder: (cbor: Cbor) => T) => T
tryOptionalObjectForPredicate
tryOptionalObjectForPredicate: <T>( predicate: EnvelopeEncodableValue, decoder: (cbor: Cbor) => T,) => T | undefined extractObjectForPredicateWithDefault: <T>( predicate: EnvelopeEncodableValue, decoder: (cbor: Cbor) => T, defaultValue: T,) => T isFalse
isFalse: () => boolean
isTrue
isTrue: () => boolean
isBool
isBool: () => boolean
isNumber
isNumber: () => boolean
isSubjectNumber
isSubjectNumber: () => boolean
isNaN
isNaN: () => boolean
isSubjectNaN
isSubjectNaN: () => boolean
isNull
isNull: () => boolean
tryByteString
tryByteString: () => Uint8Array
asByteString
asByteString: () => Uint8Array<ArrayBufferLike> | undefined
asArray
asArray: () => readonly Cbor[] | undefined
asMap
asMap: () => CborMap | undefined
asText
asText: () => string | undefined
asLeaf
asLeaf: () => Cbor | undefined
asKnownValue
asKnownValue: () => KnownValue | undefined
tryKnownValue
tryKnownValue: () => KnownValue
isKnownValue
isKnownValue: () => boolean
isSubjectUnit
isSubjectUnit: () => boolean
hasAssertions
hasAssertions: () => boolean
isAssertion
isAssertion: () => boolean
isElided
isElided: () => boolean
isLeaf
isLeaf: () => boolean
isNode
isNode: () => boolean
isWrapped
isWrapped: () => boolean
isInternal
isInternal: () => boolean
isObscured
isObscured: () => boolean
optionalAssertionWithPredicate
optionalObjectForPredicate
elementsCount
elementsCount: () => number
isSubjectEncrypted
isSubjectEncrypted: () => boolean
isSubjectCompressed
isSubjectCompressed: () => boolean
isSubjectElided
isSubjectElided: () => boolean
setPosition
setPosition: (position: number) => Envelope position
position: () => number
walk
walk: <State>(hideNodes: boolean, state: State, visit: Visitor<State>) => void digests
digests: (levelLimit: number) => Set<Digest> shallowDigests
shallowDigests: () => Set<Digest> deepDigests
deepDigests: () => Set<Digest> urString
urString: () => string
taggedCborData
taggedCborData: () => Uint8Array
StaticfromUrString
fromUrString: (urString: string) => Envelope StaticfromURString
fromURString: (urString: string) => Envelope attachmentVendor
attachmentVendor: () => string
attachmentConformsTo: () => string | undefined
attachmentsWithVendorAndConformsTo: ( vendor?: string, conformsTo?: string,) => Envelope[] attachmentWithVendorAndConformsTo: ( vendor?: string, conformsTo?: string,) => Envelope validateAttachment
validateAttachment: () => void
isCompressed
isCompressed: () => boolean
isEncrypted
isEncrypted: () => boolean
encryptSubjectToRecipient
encryptSubjectToRecipients
decryptSubjectToRecipient
addSaltWithLength
addSaltWithLength: (count: number) => Envelope addSaltWithLen
addSaltWithLen: (count: number) => Envelope addSaltBytes
addSaltBytes: (saltBytes: Uint8Array) => Envelope addSaltInRange
addSaltInRange: (min: number, max: number) => Envelope hasSignatureFrom
hasSignatureFrom: (verifier: Verifier) => boolean hasSignaturesFrom
hasSignaturesFrom: (verifiers: Verifier[]) => boolean hasSignaturesFromThreshold
hasSignaturesFromThreshold: ( verifiers: Verifier[], threshold: number,) => boolean verifySignaturesFromThreshold
verifySignaturesFromThreshold: ( verifiers: Verifier[], threshold?: number,) => Envelope mermaidFormat: () => string
summaryWithContext
summaryWithContext: (maxLength: number, context: FormatContext) => string lockSubject
lockSubject: (method: KeyDerivationMethod, secret: Uint8Array) => Envelope unlockSubject
unlockSubject: (secret: Uint8Array) => Envelope isLockedWithPassword
isLockedWithPassword: () => boolean
isLockedWithSshAgent
isLockedWithSshAgent: () => boolean
addSecret
addSecret: ( method: KeyDerivationMethod, secret: Uint8Array, contentKey: SymmetricKey,) => Envelope lock
lock: (method: KeyDerivationMethod, secret: Uint8Array) => Envelope unlock
unlock: (secret: Uint8Array) => Envelope toCbor
toCbor: () => unknown
expectLeaf
expectLeaf: () => unknown
checkTypeValue
checkTypeValue: (type: unknown) => void
Returns a string representation of an object.