4
0
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:
Wim
2024-05-23 23:44:31 +02:00
committed by GitHub
parent 56e7bd01ca
commit 2f33fe86f5
1556 changed files with 3279522 additions and 1924375 deletions

View File

@@ -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