toDer method

ByteData toDer()

Implementation

ByteData toDer() {
  final nativeData = DartApi.native.secpSignature.toDer(_ffi);
  final slice = ByteSlice(nativeData);
  try {
    return slice.toBytes();
  } finally {
    slice.dispose();
  }
}