sign method
Implementation
Signature sign(ByteData data) {
final nativeData = ByteSlice.fromBytes(data);
try {
final ffiSig = DartApi.native.privateKey.sign(_ffi, nativeData.addressOf);
return Signature(ffiSig, true);
} finally {
nativeData.dispose();
}
}