* Create a cleartext signature * @param {String} data * @return {Promise }
({data, signKeyFpr})
| 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 |