mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-04 02:11:40 +00:00
feat: add automated production release workflow
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user