sign static method
Future<String>
sign(
- String message,
- String privateKey,
- String passphrase, {
- KeyOptions? options,
Implementation
static Future<String> sign(
String message, String privateKey, String passphrase,
{KeyOptions? options}) async {
var requestBuilder = model.SignRequestObjectBuilder(
message: message,
passphrase: passphrase,
privateKey: privateKey,
options: OpenPGPRequestBuilders.keyOptionsBuilder(options),
);
return OpenPGPBridge.call("sign", requestBuilder.toBytes())
.then(OpenPGPResponseHandlers.stringResponse);
}