(pt []byte, puk ecies.PublicKey)
| 51 | return ECCEncrypt(msg, *eciesPubKey) |
| 52 | } |
| 53 | func ECCEncrypt(pt []byte, puk ecies.PublicKey) ([]byte, error) { |
| 54 | ct, err := ecies.Encrypt(rand.Reader, &puk, pt, nil, nil) |
| 55 | return ct, err |
| 56 | } |
| 57 | |
| 58 | // Decode addr |
| 59 | func Decode(privateKey string, msg []byte) ([]byte, error) { |