Use golang.org/x/crypto/ed25519 instead of crypto/ed25519 for pre-Go 1.13

This commit is contained in:
Neil Alexander 2020-01-25 13:23:42 +00:00
parent f8387ff93d
commit 8c9eb71e8b
3 changed files with 6 additions and 3 deletions

View file

@ -15,11 +15,12 @@
package basecomponent package basecomponent
import ( import (
"crypto/ed25519"
"database/sql" "database/sql"
"io" "io"
"net/http" "net/http"
"golang.org/x/crypto/ed25519"
"github.com/matrix-org/dendrite/common/keydb" "github.com/matrix-org/dendrite/common/keydb"
"github.com/matrix-org/gomatrixserverlib" "github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/naffka" "github.com/matrix-org/naffka"

View file

@ -16,9 +16,10 @@ package keydb
import ( import (
"context" "context"
"crypto/ed25519"
"net/url" "net/url"
"golang.org/x/crypto/ed25519"
"github.com/matrix-org/dendrite/common/keydb/postgres" "github.com/matrix-org/dendrite/common/keydb/postgres"
"github.com/matrix-org/gomatrixserverlib" "github.com/matrix-org/gomatrixserverlib"
) )

View file

@ -17,10 +17,11 @@ package postgres
import ( import (
"context" "context"
"crypto/ed25519"
"database/sql" "database/sql"
"math" "math"
"golang.org/x/crypto/ed25519"
"github.com/matrix-org/gomatrixserverlib" "github.com/matrix-org/gomatrixserverlib"
) )