14 lines
268 B
Go
14 lines
268 B
Go
|
package initialize
|
||
|
|
||
|
import (
|
||
|
"codeword/internal/utils/encrypt"
|
||
|
)
|
||
|
|
||
|
func InitializeEncrypt(cfg Config) *encrypt.Encrypt {
|
||
|
return encrypt.New(&encrypt.EncryptDeps{
|
||
|
PublicKey: cfg.PublicCurveKey,
|
||
|
PrivateKey: cfg.PrivateCurveKey,
|
||
|
SignSecret: cfg.SignSecret,
|
||
|
})
|
||
|
}
|