cert-v2 chores (#1466)

This commit is contained in:
Jack Doan
2025-09-05 15:08:22 -05:00
committed by GitHub
parent 932e329164
commit 768325c9b4
5 changed files with 53 additions and 74 deletions

View File

@@ -135,8 +135,7 @@ func Recombine(v Version, rawCertBytes, publicKey []byte, curve Curve) (Certific
case Version2:
c, err = unmarshalCertificateV2(rawCertBytes, publicKey, curve)
default:
//TODO: CERT-V2 make a static var
return nil, fmt.Errorf("unknown certificate version %d", v)
return nil, ErrUnknownVersion
}
if err != nil {