Skip to content

Commit

Permalink
test: generate some signing key
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelbrm committed May 22, 2024
1 parent d6a1fd7 commit bfd86f0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions model/issuer_keys.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package model

import (
"fmt"
"time"

"github.com/google/uuid"
Expand All @@ -24,7 +23,6 @@ type IssuerKeys struct {
func (x *IssuerKeys) CryptoSigningKey() *crypto.SigningKey {
result := &crypto.SigningKey{}
if err := result.UnmarshalText(x.SigningKey); err != nil {
fmt.Println(err)
return nil
}

Expand Down
3 changes: 0 additions & 3 deletions model/issuer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,6 @@ func TestFindSigningKey(t *testing.T) {
},
now: time.Date(2024, time.January, 1, 1, 0, 1, 0, time.UTC),
},
// Should be nil, but since the construction of the signing key fails,
// there will be no signing keys at the end, hence the error.
exp: model.ErrIssuerV3NoCryptoKey,
},
}

Expand Down

0 comments on commit bfd86f0

Please sign in to comment.