This commit is contained in:
李子铭 2025-03-24 16:34:41 +08:00
parent 33d456b5d3
commit a17ead31f1
1 changed files with 19 additions and 0 deletions

19
internal/pkg/cmb/sm.go Normal file
View File

@ -0,0 +1,19 @@
package cmb
import (
sm22 "voucher/internal/pkg/cmb/sm2"
)
type Smx struct {
Sm *sm22.Sm2
}
func NewSmx(privateKey, publicKey string) (*Smx, error) {
return &Smx{
Sm: sm22.NewSm2().SetHexPrivateKey(privateKey).SetHexPublicKey(publicKey),
}, nil
}
func (s *Smx) Sign(input string) {
}