toJwsAlgorithm

fun SignatureAlgorithm.toJwsAlgorithm(): KmmResult<JwsAlgorithm>
fun SpecializedSignatureAlgorithm.toJwsAlgorithm(): KmmResult<JwsAlgorithm>

Tries to find a matching JWS algorithm. Note that JWS imposes curve restrictions on ECDSA based on the digest.