src/index.js
/**
   * Forward existing document on the network to given receiver
   * @async
   * @param {String} receiverDID Decentralize identifier of the receiver
   * @param {String} dri Decentralize Resource Identifier of the forwarding file
   * @param {Object} payload Additional information which should be attached to the document
   */
Forward existing document on the network to given receiver
@async
@param {String} receiverDID Decentralize identifier of the receiver
@param {String} dri Decentralize Resource Identifier of the forwarding file
@param {Object} payload Additional information which should be attached to the document
Forward existing document on the network to given receiver @async @param { String } receiverDID Decentralize identifier of the receiver @param { String } dri Decentralize Resource Identifier of the forwarding file @param { Object } payload Additional information which should be attached to the document
forwardDocument(receiverDID, dri, payload) {
    const self = this;
    self
      .encryptTransactionPayloadFor(receiverDID, dri, payload)
      .then((encryptedTransactionPayload) => {
        self.sendDocument(dri, encryptedTransactionPayload, receiverDID);
      });
  }
forwardDocument ( receiverDID , dri , payload ) { const self = this ; self . encryptTransactionPayloadFor ( receiverDID , dri , payload ) . then ( ( encryptedTransactionPayload ) => { self . sendDocument ( dri , encryptedTransactionPayload , receiverDID ) ; } ) ; }
Forward existing document on the network to given receiver
 @async
 @param {String} receiverDID Decentralize identifier of the receiver
 @param {String} dri Decentralize Resource Identifier of the forwarding file
 @param {Object} payload Additional information which should be attached to the document
Forward existing document on the network to given receiver @async @param { String } receiverDID Decentralize identifier of the receiver @param { String } dri Decentralize Resource Identifier of the forwarding file @param { Object } payload Additional information which should be attached to the document