Rework define_pk_keypair macro to generate a public() fn for all keypair types
define_pk_keypair
currently only generates key pair structs (and corresponding public()
, etc. accessors) and for curve25519 keys. We might want to consider creating keypair structs for other key types too (this would enable us to extract the public part of any keypair using kp.public()
)
The following discussion from !1689 (merged) should be addressed:
-
@nickm started a discussion: (+1 comment) I think we should be able to get the public part of every keypair with a
public()
function. Do we not have one of those here? Several other keypairs have them.