voucher/internal/pkg/cmb/sm.go

20 lines
295 B
Go

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) {
}