sign method

Signature sign(
  1. ByteData data
)

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();
  }
}