signatureNormalize

abstract fun signatureNormalize(sig: ByteArray): Pair<ByteArray, Boolean>

Convert an ECDSA signature to a normalized lower-S form (bitcoin standardness rule). Returns the normalized signature and a boolean set to true if the input signature was not normalized.

Parameters

sig

signature that should be normalized.