isDerSignature function

bool isDerSignature(
  1. Uint8List sig
)

Implementation

bool isDerSignature(Uint8List sig) {
  try {
    return bytesWrapDerSignature(bytesUnwrapDerSignature(sig)).eq(sig);
  } catch (e) {
    return false;
  }
}