signEcdsa method

SecpSignature signEcdsa(
  1. ByteData data
)

Implementation

SecpSignature signEcdsa(ByteData data) {
  final nativeData = ByteSlice.fromBytes(data);
  try {
    final ffiSig =
        DartApi.native.secpPrivateKey.signEcdsa(_ffi, nativeData.addressOf);
    return SecpSignature(ffiSig, true);
  } finally {
    nativeData.dispose();
  }
}