feat: add automated production release workflow

This commit is contained in:
Prad Nukala
2024-09-23 12:25:15 -04:00
parent 05bda3d1b2
commit c31b324bd3
217 changed files with 19760 additions and 56358 deletions
+22
View File
@@ -0,0 +1,22 @@
package orm
import "github.com/onsonr/sonr/internal/orm/keyalgorithm"
type COSEAlgorithmIdentifier int
func GetCoseIdentifier(alg keyalgorithm.KeyAlgorithm) COSEAlgorithmIdentifier {
switch alg {
case keyalgorithm.Es256:
return COSEAlgorithmIdentifier(-7)
case keyalgorithm.Es384:
return COSEAlgorithmIdentifier(-35)
case keyalgorithm.Es512:
return COSEAlgorithmIdentifier(-36)
case keyalgorithm.Eddsa:
return COSEAlgorithmIdentifier(-8)
case keyalgorithm.Es256k:
return COSEAlgorithmIdentifier(-10)
default:
return COSEAlgorithmIdentifier(0)
}
}