MCPcopy Index your code
hub / github.com/mailvelope/mailvelope / signMessage

Method signMessage

src/controller/editor.controller.js:596–607  ·  view source on GitHub ↗

* Create a cleartext signature * @param {String} data * @return {Promise }

({data, signKeyFpr})

Source from the content-addressed store, hash-verified

594 * @return {Promise<String>}
595 */
596 signMessage({data, signKeyFpr}) {
597 const unlockKey = async options => {
598 options.reason = 'PWD_DIALOG_REASON_SIGN';
599 return this.unlockKey(options);
600 };
601 return model.signMessage({
602 data,
603 keyringId: this.state.keyringId,
604 unlockKey,
605 signingKeyFpr: signKeyFpr
606 });
607 }
608
609 /**
610 * Transfer the encrypted/signed armored message and recipients back to the webmail interface or editor container

Callers 1

signAndEncryptMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected