2
0
mirror of https://github.com/status-im/status-go.git synced 2025-01-11 23:25:29 +00:00
2022-06-20 15:33:09 +01:00

12 lines
215 B
Go

package server
import (
"crypto/ecdsa"
"github.com/status-im/status-go/protocol/common"
)
func makeEncryptionKey(key *ecdsa.PrivateKey) ([]byte, error) {
return common.MakeECDHSharedKey(key, &key.PublicKey)
}