• Preparing search index...
  • The search index is not available
API Documentation
  • API Documentation
  • messaging/src
  • fromBody

Function fromBody

  • fromBody(body: MessageBody, sender: DidUri, receiver: DidUri): IMessage
  • Constructs a message from a message body. This should be encrypted with encrypt before sending to the receiver.

    Returns

    The message created.

    Parameters

    • body: MessageBody

      The body of the message.

    • sender: DidUri

      The DID of the sender.

    • receiver: DidUri

      The DID of the receiver.

    Returns IMessage

    • Defined in packages/messaging/src/Message.ts:384

Settings

Member Visibility

Theme

Modules

  • API Documentation
    • asset-did/src
    • augment-api/src
    • chain-helpers/src
      • Blockchain
      • ErrorHandler
      • SubscriptionPromise
    • config/src
      • ConfigService
    • core/src
      • Attestation
      • BalanceUtils
      • CType
        • Schemas
      • Claim
      • Credential
      • DelegationNodeUtils
      • PublicCredential
      • Quote
    • did/src
    • messaging/src
    • sdk-js/src
    • type-definitions/src
    • types/src
      • SubscriptionPromise
    • utils/src
      • Crypto
      • DataUtils
      • JsonSchema
      • SDKErrors
      • UUID
      • jsonabc
    • vc-export/src
      • constants
      • presentation
      • vcjsSuites
        • suites
          • KiltAttestedSuite
          • KiltIntegritySuite
          • KiltSignatureSuite
      • verification
  • decrypt
  • encrypt
  • ensureOwnerIsSender
  • fromBody
  • verify
  • verifyDelegationStructure
  • verifyMessageBody
  • verifyMessageEnvelope
  • verifyRequiredCTypeProperties