fix: Refactor crypto

This commit is contained in:
Prad N
2025-03-11 13:57:03 -04:00
parent 090ee30ba3
commit 00b23353c9
285 changed files with 0 additions and 68698 deletions
-13
View File
@@ -1,13 +0,0 @@
package ecies
import eciesgo "github.com/ecies/go/v2"
// Encrypt encrypts a plaintext using a public key
func Encrypt(pub *PublicKey, plaintext []byte) ([]byte, error) {
return eciesgo.Encrypt(pub, plaintext)
}
// Decrypt decrypts a ciphertext using a private key
func Decrypt(priv *PrivateKey, ciphertext []byte) ([]byte, error) {
return eciesgo.Decrypt(priv, ciphertext)
}