Migrate package imports from next.orly.dev to new orly domain structure; add new varint and binary encoders with comprehensive tests; enhance existing tag and envelope implementations with additional methods, validations, and test coverage; introduce shared test.sh script for streamlined testing across modules.

This commit is contained in:
2025-08-31 16:52:24 +01:00
parent 94383f29e9
commit 91d95c6f1a
202 changed files with 12803 additions and 420 deletions

View File

@@ -8,7 +8,7 @@ package secp256k1
import (
"math/bits"
"next.orly.dev/pkg/encoders/hex"
"encoders.orly/hex"
)
// References:

View File

@@ -8,7 +8,7 @@ package secp256k1
import (
"testing"
"next.orly.dev/pkg/utils"
"utils.orly"
)
func TestGenerateSharedSecret(t *testing.T) {

View File

@@ -11,9 +11,9 @@ import (
"encoding/binary"
"fmt"
"next.orly.dev/pkg/crypto/ec/secp256k1"
"next.orly.dev/pkg/crypto/sha256"
"next.orly.dev/pkg/encoders/hex"
"crypto.orly/ec/secp256k1"
"crypto.orly/sha256"
"encoders.orly/hex"
)
// This example demonstrates use of GenerateSharedSecret to encrypt a message

View File

@@ -52,7 +52,7 @@ package secp256k1
// ordinarily would. See the documentation for FieldVal for more details.
import (
"next.orly.dev/pkg/encoders/hex"
"encoders.orly/hex"
)
// Constants used to make the code more readable.

View File

@@ -14,9 +14,9 @@ import (
"testing"
"time"
"encoders.orly/hex"
"lol.mleku.dev/chk"
"next.orly.dev/pkg/encoders/hex"
"next.orly.dev/pkg/utils"
"utils.orly"
)
// SetHex decodes the passed big-endian hex string into the internal field value

View File

@@ -7,7 +7,7 @@ package secp256k1
import (
"math/big"
"next.orly.dev/pkg/encoders/hex"
"encoders.orly/hex"
)
// References:

View File

@@ -12,9 +12,9 @@ import (
"testing"
"time"
"encoders.orly/hex"
"lol.mleku.dev/chk"
"next.orly.dev/pkg/encoders/hex"
"next.orly.dev/pkg/utils"
"utils.orly"
)
// SetHex interprets the provided hex string as a 256-bit big-endian unsigned

View File

@@ -9,7 +9,7 @@ import (
"bytes"
"hash"
"next.orly.dev/pkg/crypto/sha256"
"crypto.orly/sha256"
)
// References:

View File

@@ -8,9 +8,9 @@ package secp256k1
import (
"testing"
"next.orly.dev/pkg/crypto/sha256"
"next.orly.dev/pkg/encoders/hex"
"next.orly.dev/pkg/utils"
"crypto.orly/sha256"
"encoders.orly/hex"
"utils.orly"
)
// hexToBytes converts the passed hex string into bytes and will panic if there

View File

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

View File

@@ -9,7 +9,7 @@ import (
"errors"
"testing"
"next.orly.dev/pkg/utils"
"utils.orly"
)
// TestParsePubKey ensures that public keys are properly parsed according

View File

@@ -12,7 +12,7 @@ import (
"math/big"
"testing"
"next.orly.dev/pkg/utils"
"utils.orly"
)
// TestGenerateSecretKey ensures the key generation works as expected.