test
This commit is contained in:
parent
33d456b5d3
commit
a17ead31f1
|
|
@ -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) {
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue