mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-09-14 14:52:30 +00:00
Update dependencies and build to go1.22 (#2113)
* Update dependencies and build to go1.22 * Fix api changes wrt to dependencies * Update golangci config
This commit is contained in:
@@ -9,9 +9,8 @@ package keys
|
||||
|
||||
import (
|
||||
"go.mau.fi/libsignal/ecc"
|
||||
"go.mau.fi/util/random"
|
||||
"golang.org/x/crypto/curve25519"
|
||||
|
||||
"go.mau.fi/whatsmeow/util/randbytes"
|
||||
)
|
||||
|
||||
type KeyPair struct {
|
||||
@@ -31,7 +30,7 @@ func NewKeyPairFromPrivateKey(priv [32]byte) *KeyPair {
|
||||
}
|
||||
|
||||
func NewKeyPair() *KeyPair {
|
||||
priv := *(*[32]byte)(randbytes.Make(32))
|
||||
priv := *(*[32]byte)(random.Bytes(32))
|
||||
|
||||
priv[0] &= 248
|
||||
priv[31] &= 127
|
||||
|
Reference in New Issue
Block a user