In environments where memory is tight, sometimes, we would like to compute the expanded private key from the ML-DSA seed (expand-private), or to compute the public key from the ML-DSA seed (export-public), without spending memory on the key that we don't need.
mld_sign_keypair_internal() computes both pk and sk from the seed. It would be nice to have similar functions that compute only one of the keys. (Especially export-public — I'm not sure if it's possible to save memory or computation for expand-private, given the need for the public key hash.)
In environments where memory is tight, sometimes, we would like to compute the expanded private key from the ML-DSA seed (expand-private), or to compute the public key from the ML-DSA seed (export-public), without spending memory on the key that we don't need.
mld_sign_keypair_internal()computes both pk and sk from the seed. It would be nice to have similar functions that compute only one of the keys. (Especially export-public — I'm not sure if it's possible to save memory or computation for expand-private, given the need for the public key hash.)