diff --git a/.golangci.yaml b/.golangci.yaml index 1bde37d..9de8ef5 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -31,7 +31,7 @@ formatters: settings: goimports: local-prefixes: - - github.com/selesy/go-varsig + - github.com/ucan-wg/go-varsig exclusions: generated: lax paths: diff --git a/common_test.go b/common_test.go index 5d58639..5b8f3ee 100644 --- a/common_test.go +++ b/common_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/selesy/go-varsig" + "github.com/ucan-wg/go-varsig" ) func TestEd25519(t *testing.T) { diff --git a/constant_test.go b/constant_test.go index 994e9e8..7801e7e 100644 --- a/constant_test.go +++ b/constant_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/selesy/go-varsig" + "github.com/ucan-wg/go-varsig" ) func TestDecodeHashAlgorithm(t *testing.T) { diff --git a/eddsa_test.go b/eddsa_test.go index 1af3213..024dbc9 100644 --- a/eddsa_test.go +++ b/eddsa_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/selesy/go-varsig" + "github.com/ucan-wg/go-varsig" ) func TestDecodeEd25519(t *testing.T) { diff --git a/go.mod b/go.mod index 6987f11..ac82baf 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/selesy/go-varsig +module github.com/ucan-wg/go-varsig go 1.24.4 diff --git a/registry_test.go b/registry_test.go index 0cda893..da7bc99 100644 --- a/registry_test.go +++ b/registry_test.go @@ -8,7 +8,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/selesy/go-varsig" + "github.com/ucan-wg/go-varsig" ) func TestRegistry_Decode(t *testing.T) { diff --git a/rsa_test.go b/rsa_test.go index a5a6464..c8aad7d 100644 --- a/rsa_test.go +++ b/rsa_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/selesy/go-varsig" + "github.com/ucan-wg/go-varsig" ) func TestRSAVarsig(t *testing.T) { diff --git a/varsig.go b/varsig.go index 8d76e8c..883915e 100644 --- a/varsig.go +++ b/varsig.go @@ -1,21 +1,20 @@ -// Package varsig implements v0.1.0 of the [Varsig specification]. +// Package varsig implements v1.0.0 of the [Varsig specification] with +// limited support for varsig < v1. This is primarily in support of the +// UCAN v1.0.0 specification and will be deprecated in the future. // -// # Algorithm naming +// # Common algorithm naming // // While there is no strict need for compatibility with JWA/JWT/JWE/JWS, // all attempts are made to keep the algorithm names here consistent with -// the table provided in [section 3.1] of RFC7518 titled "JSON Web Algorithms. -// In cases where there is no equivalent name for an algorithm, a best- -// effort attempt at creating a name in the spirit of that specification is -// made. +// list made available at the [IANA Registry] titled "JSON Web Signature +// and Encryption Algorithms" (JOSE.) // // It should also be noted that algorithm in this context might in fact be // a pseudonym - for cryptographical signing algorithms that require the // signed data to be hashed first, these names commonly refer to the // combination of that signing algorithm and the hash algorithm. // -// [section 3.1]: https://datatracker.ietf.org/doc/html/rfc7518#section-3.1 -// +// [IANA Registry]]: https://www.iana.org/assignments/jose/jose.xhtml#web-signature-encryption-algorithms // [Varsig Specification]: https://github.com/ChainAgnostic/varsig package varsig diff --git a/varsig_test.go b/varsig_test.go index 196871e..a947bdc 100644 --- a/varsig_test.go +++ b/varsig_test.go @@ -9,7 +9,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/selesy/go-varsig" + "github.com/ucan-wg/go-varsig" ) func TestDecode(t *testing.T) {