Migrate internal module imports to unified package path.
Replaced legacy `*.orly` module imports with `next.orly.dev/pkg` paths across the codebase for consistency. Removed legacy `go.mod` files from sub-packages, consolidating dependency management. Added Dockerfiles and configurations for benchmarking environments.
This commit is contained in:
@@ -8,7 +8,7 @@ package secp256k1
|
||||
import (
|
||||
"math/bits"
|
||||
|
||||
"encoders.orly/hex"
|
||||
"next.orly.dev/pkg/encoders/hex"
|
||||
)
|
||||
|
||||
// References:
|
||||
|
||||
@@ -8,7 +8,7 @@ package secp256k1
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"utils.orly"
|
||||
"next.orly.dev/pkg/utils"
|
||||
)
|
||||
|
||||
func TestGenerateSharedSecret(t *testing.T) {
|
||||
|
||||
@@ -11,9 +11,9 @@ import (
|
||||
"encoding/binary"
|
||||
"fmt"
|
||||
|
||||
"crypto.orly/ec/secp256k1"
|
||||
"crypto.orly/sha256"
|
||||
"encoders.orly/hex"
|
||||
"next.orly.dev/pkg/crypto/ec/secp256k1"
|
||||
"next.orly.dev/pkg/crypto/sha256"
|
||||
"next.orly.dev/pkg/encoders/hex"
|
||||
)
|
||||
|
||||
// This example demonstrates use of GenerateSharedSecret to encrypt a message
|
||||
|
||||
@@ -52,7 +52,7 @@ package secp256k1
|
||||
// ordinarily would. See the documentation for FieldVal for more details.
|
||||
|
||||
import (
|
||||
"encoders.orly/hex"
|
||||
"next.orly.dev/pkg/encoders/hex"
|
||||
)
|
||||
|
||||
// Constants used to make the code more readable.
|
||||
|
||||
@@ -14,9 +14,9 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"encoders.orly/hex"
|
||||
"lol.mleku.dev/chk"
|
||||
"utils.orly"
|
||||
"next.orly.dev/pkg/encoders/hex"
|
||||
"next.orly.dev/pkg/utils"
|
||||
)
|
||||
|
||||
// SetHex decodes the passed big-endian hex string into the internal field value
|
||||
|
||||
@@ -7,7 +7,7 @@ package secp256k1
|
||||
import (
|
||||
"math/big"
|
||||
|
||||
"encoders.orly/hex"
|
||||
"next.orly.dev/pkg/encoders/hex"
|
||||
)
|
||||
|
||||
// References:
|
||||
|
||||
@@ -12,9 +12,9 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"encoders.orly/hex"
|
||||
"lol.mleku.dev/chk"
|
||||
"utils.orly"
|
||||
"next.orly.dev/pkg/encoders/hex"
|
||||
"next.orly.dev/pkg/utils"
|
||||
)
|
||||
|
||||
// SetHex interprets the provided hex string as a 256-bit big-endian unsigned
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
"bytes"
|
||||
"hash"
|
||||
|
||||
"crypto.orly/sha256"
|
||||
"next.orly.dev/pkg/crypto/sha256"
|
||||
)
|
||||
|
||||
// References:
|
||||
|
||||
@@ -8,9 +8,9 @@ package secp256k1
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"crypto.orly/sha256"
|
||||
"encoders.orly/hex"
|
||||
"utils.orly"
|
||||
"next.orly.dev/pkg/crypto/sha256"
|
||||
"next.orly.dev/pkg/encoders/hex"
|
||||
"next.orly.dev/pkg/utils"
|
||||
)
|
||||
|
||||
// hexToBytes converts the passed hex string into bytes and will panic if there
|
||||
|
||||
@@ -13,9 +13,9 @@ import (
|
||||
"math/big"
|
||||
"os"
|
||||
|
||||
"crypto.orly/ec/secp256k1"
|
||||
"lol.mleku.dev/chk"
|
||||
"lol.mleku.dev/log"
|
||||
"next.orly.dev/pkg/crypto/ec/secp256k1"
|
||||
)
|
||||
|
||||
// curveParams houses the secp256k1 curve parameters for convenient access.
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
"errors"
|
||||
"testing"
|
||||
|
||||
"utils.orly"
|
||||
"next.orly.dev/pkg/utils"
|
||||
)
|
||||
|
||||
// TestParsePubKey ensures that public keys are properly parsed according
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
"math/big"
|
||||
"testing"
|
||||
|
||||
"utils.orly"
|
||||
"next.orly.dev/pkg/utils"
|
||||
)
|
||||
|
||||
// TestGenerateSecretKey ensures the key generation works as expected.
|
||||
|
||||
Reference in New Issue
Block a user