chore(ownership): transfer ownership from selesy to ucan-wg
This commit is contained in:
@@ -31,7 +31,7 @@ formatters:
|
|||||||
settings:
|
settings:
|
||||||
goimports:
|
goimports:
|
||||||
local-prefixes:
|
local-prefixes:
|
||||||
- github.com/selesy/go-varsig
|
- github.com/ucan-wg/go-varsig
|
||||||
exclusions:
|
exclusions:
|
||||||
generated: lax
|
generated: lax
|
||||||
paths:
|
paths:
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
|
|
||||||
"github.com/selesy/go-varsig"
|
"github.com/ucan-wg/go-varsig"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestEd25519(t *testing.T) {
|
func TestEd25519(t *testing.T) {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"github.com/selesy/go-varsig"
|
"github.com/ucan-wg/go-varsig"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestDecodeHashAlgorithm(t *testing.T) {
|
func TestDecodeHashAlgorithm(t *testing.T) {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"github.com/selesy/go-varsig"
|
"github.com/ucan-wg/go-varsig"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestDecodeEd25519(t *testing.T) {
|
func TestDecodeEd25519(t *testing.T) {
|
||||||
|
|||||||
2
go.mod
2
go.mod
@@ -1,4 +1,4 @@
|
|||||||
module github.com/selesy/go-varsig
|
module github.com/ucan-wg/go-varsig
|
||||||
|
|
||||||
go 1.24.4
|
go 1.24.4
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"github.com/selesy/go-varsig"
|
"github.com/ucan-wg/go-varsig"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestRegistry_Decode(t *testing.T) {
|
func TestRegistry_Decode(t *testing.T) {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"github.com/selesy/go-varsig"
|
"github.com/ucan-wg/go-varsig"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestRSAVarsig(t *testing.T) {
|
func TestRSAVarsig(t *testing.T) {
|
||||||
|
|||||||
15
varsig.go
15
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,
|
// 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
|
// 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.
|
// list made available at the [IANA Registry] titled "JSON Web Signature
|
||||||
// In cases where there is no equivalent name for an algorithm, a best-
|
// and Encryption Algorithms" (JOSE.)
|
||||||
// effort attempt at creating a name in the spirit of that specification is
|
|
||||||
// made.
|
|
||||||
//
|
//
|
||||||
// It should also be noted that algorithm in this context might in fact be
|
// It should also be noted that algorithm in this context might in fact be
|
||||||
// a pseudonym - for cryptographical signing algorithms that require the
|
// a pseudonym - for cryptographical signing algorithms that require the
|
||||||
// signed data to be hashed first, these names commonly refer to the
|
// signed data to be hashed first, these names commonly refer to the
|
||||||
// combination of that signing algorithm and the hash algorithm.
|
// 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
|
// [Varsig Specification]: https://github.com/ChainAgnostic/varsig
|
||||||
package varsig
|
package varsig
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"github.com/selesy/go-varsig"
|
"github.com/ucan-wg/go-varsig"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestDecode(t *testing.T) {
|
func TestDecode(t *testing.T) {
|
||||||
|
|||||||
Reference in New Issue
Block a user