Skip to content

Commit

Permalink
fix comments assuming ECDSA-only support
Browse files Browse the repository at this point in the history
Signed-off-by: Johann Westphall <johannwestphall@gmail.com>
  • Loading branch information
johannww authored and denyeart committed Jun 27, 2024
1 parent c4b4401 commit 634c5ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/common/signer/signer.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func validateEnrollmentCertificate(b []byte) error {

func (si *Signer) Sign(msg []byte) ([]byte, error) {
switch key := si.key.(type) {
// Fabric only supports ECDSA at the moment.
// Fabric only supports ECDSA and ed25519 at the moment.
case *ecdsa.PrivateKey:
digest := util.ComputeSHA256(msg)
return signECDSA(si.key.(*ecdsa.PrivateKey), digest)
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 634c5ab

Please sign in to comment.