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,9 +8,9 @@ import (
"fmt"
"testing"
"next.orly.dev/pkg/crypto/ec"
"next.orly.dev/pkg/crypto/ec/schnorr"
"next.orly.dev/pkg/encoders/hex"
"crypto.orly/ec"
"crypto.orly/ec/schnorr"
"encoders.orly/hex"
)
var (

View File

@@ -5,9 +5,9 @@ package musig2
import (
"fmt"
"crypto.orly/ec"
"crypto.orly/ec/schnorr"
"lol.mleku.dev/chk"
"next.orly.dev/pkg/crypto/ec"
"next.orly.dev/pkg/crypto/ec/schnorr"
)
var (

View File

@@ -7,12 +7,12 @@ import (
"fmt"
"sort"
"next.orly.dev/pkg/utils"
"utils.orly"
"next.orly.dev/pkg/crypto/ec"
"next.orly.dev/pkg/crypto/ec/chainhash"
"next.orly.dev/pkg/crypto/ec/schnorr"
"next.orly.dev/pkg/crypto/ec/secp256k1"
"crypto.orly/ec"
"crypto.orly/ec/chainhash"
"crypto.orly/ec/schnorr"
"crypto.orly/ec/secp256k1"
)
var (

View File

@@ -10,10 +10,10 @@ import (
"strings"
"testing"
"next.orly.dev/pkg/crypto/ec"
"next.orly.dev/pkg/crypto/ec/schnorr"
"next.orly.dev/pkg/crypto/ec/secp256k1"
"next.orly.dev/pkg/encoders/hex"
"crypto.orly/ec"
"crypto.orly/ec/schnorr"
"crypto.orly/ec/secp256k1"
"encoders.orly/hex"
"github.com/stretchr/testify/require"
)

View File

@@ -8,9 +8,9 @@ import (
"sync"
"testing"
"next.orly.dev/pkg/crypto/ec"
"next.orly.dev/pkg/crypto/sha256"
"next.orly.dev/pkg/encoders/hex"
"crypto.orly/ec"
"crypto.orly/sha256"
"encoders.orly/hex"
)
const (

View File

@@ -9,10 +9,10 @@ import (
"errors"
"io"
"crypto.orly/ec"
"crypto.orly/ec/chainhash"
"crypto.orly/ec/schnorr"
"lol.mleku.dev/chk"
"next.orly.dev/pkg/crypto/ec"
"next.orly.dev/pkg/crypto/ec/chainhash"
"next.orly.dev/pkg/crypto/ec/schnorr"
)
const (

View File

@@ -9,11 +9,9 @@ import (
"path"
"testing"
"next.orly.dev/pkg/utils"
"next.orly.dev/pkg/encoders/hex"
"encoders.orly/hex"
"github.com/stretchr/testify/require"
"utils.orly"
)
type nonceGenTestCase struct {

View File

@@ -7,13 +7,12 @@ import (
"fmt"
"io"
"next.orly.dev/pkg/utils"
"crypto.orly/ec"
"crypto.orly/ec/chainhash"
"crypto.orly/ec/schnorr"
"crypto.orly/ec/secp256k1"
"lol.mleku.dev/chk"
"next.orly.dev/pkg/crypto/ec"
"next.orly.dev/pkg/crypto/ec/chainhash"
"next.orly.dev/pkg/crypto/ec/schnorr"
"next.orly.dev/pkg/crypto/ec/secp256k1"
"utils.orly"
)
var (

View File

@@ -11,10 +11,9 @@ import (
"strings"
"testing"
"next.orly.dev/pkg/crypto/ec"
"next.orly.dev/pkg/crypto/ec/secp256k1"
"next.orly.dev/pkg/encoders/hex"
"crypto.orly/ec"
"crypto.orly/ec/secp256k1"
"encoders.orly/hex"
"github.com/stretchr/testify/require"
)