checkHashTypeNotSchnorr static method

SigHashType checkHashTypeNotSchnorr(
  1. SigHashType type
)

Implementation

static SigHashType checkHashTypeNotSchnorr(SigHashType type) {
  if (type.schnorrDefault) {
    throw CannotSignInput(
      "Cannot sign a legacy input with a default Schnorr hash type",
    );
  }
  return type;
}