...

Source file src/github.com/lestrrat-go/jwx/jwk/es256k_test.go

Documentation: github.com/lestrrat-go/jwx/jwk

     1  // +build jwx_es256k
     2  
     3  package jwk_test
     4  
     5  import (
     6  	"testing"
     7  
     8  	"github.com/lestrrat-go/jwx/internal/ecutil"
     9  	"github.com/lestrrat-go/jwx/jwa"
    10  	"github.com/stretchr/testify/assert"
    11  )
    12  
    13  func TestES256K(t *testing.T) {
    14  	if !assert.True(t, ecutil.IsAvailable(jwa.Secp256k1), `jwa.Secp256k1 should be available`) {
    15  		return
    16  	}
    17  }
    18  

View as plain text