12 lines
215 B
Go
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)
|
||
|
}
|