Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
skynet2 committed Sep 20, 2024
1 parent 9c93c68 commit e7ee3f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dataintegrity/suite/eddsa2022/eddsa2022.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ const (
ldCtxKey = "@context"
)

// CreateProof implements the eddsa-2022 cryptographic suite for Add Proof:
// CreateProof implements the eddsa-2022 cryptographic suite for Add Proof.
func (s *Suite) CreateProof(doc []byte, opts *models.ProofOptions) (*models.Proof, error) {
docHash, vmKey, _, err := s.transformAndHash(doc, opts)
if err != nil {
Expand Down Expand Up @@ -244,7 +244,7 @@ func (s *Suite) transformAndHash(doc []byte, opts *models.ProofOptions) ([]byte,
return docHash, &pubkey.PublicKey{Type: keyType, JWK: vmKey}, verifier, nil
}

// VerifyProof implements the eddsa-2022 cryptographic suite for CheckJWTProof Proof:
// VerifyProof implements the eddsa-2022 cryptographic suite for CheckJWTProof Proof.
func (s *Suite) VerifyProof(doc []byte, proof *models.Proof, opts *models.ProofOptions) error {
message, vmKey, verifier, err := s.transformAndHash(doc, opts)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion dataintegrity/suite/eddsa2022/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func TestIntegration(t *testing.T) {

err = verifier.VerifyProof(validCredential, proof, verifyOpts)
require.Error(t, err)
require.Contains(t, err.Error(), "failed to verify ecdsa-2022 DI proof")
require.Contains(t, err.Error(), "failed to verify eddsa-2022 DI proof")
})
})
}
Expand Down

0 comments on commit e7ee3f5

Please sign in to comment.