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