go-tuf icon indicating copy to clipboard operation
go-tuf copied to clipboard

Why does "func NewP256Signer()" returns an "ed25519Signer"?

Open cedricvanrompay-datadog opened this issue 2 years ago • 0 comments

From https://github.com/theupdateframework/go-tuf/blob/0e889ad1c/pkg/keys/ed25519.go#L18:

func NewP256Signer() Signer {
	return &ed25519Signer{}
}

Is this on purpose? Someone calling NewP256Signer would probably expect to get a signer using ECDSA over P-256 curve, and not a signer using Ed25519.

cedricvanrompay-datadog avatar Apr 04 '22 13:04 cedricvanrompay-datadog