DIDComm.packDIDCommMessage() method
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Packs a IDIDCommMessage using one of the DIDCommMessagePacking options.
Signature:
packDIDCommMessage(args: IPackDIDCommMessageArgs, context: IAgentContext<IDIDManager & IKeyManager & IResolver>): Promise<IPackedDIDCommMessage>;
Parameters
Parameter | Type | Description |
|---|---|---|
args | an IPackDIDCommMessageArgs object. * args.message - IDIDCommMessage - the message to be packed * args.packing - DIDCommMessagePacking - the packing method * args.keyRef - Optional - string - either an | |
context | This method requires an agent that also has IDIDManager, IKeyManager and IResolver plugins in use. When calling this method, the |
Promise<IPackedDIDCommMessage>
- a Promise that resolves to a IPackedDIDCommMessage object containing the serialized packed
messagestring
This API may change without a BREAKING CHANGE notice.