Open teor2345 opened 1 year ago
Hmm, so PublicKey
wraps MontgomeryPoint
which wraps [u8; 32]
and all of them autoderive Debug
.
What happens if you do println!("{:x?}", my_pubkey)
Hmm, so
PublicKey
wrapsMontgomeryPoint
which wraps[u8; 32]
and all of them autoderiveDebug
.What happens if you do
println!("{:x?}", my_pubkey)
The "actual output" in the ticket is what happens when I debug-print a key.
When a debug-format
x25519::PublicKey
, I get some very long output (see below). But it would be much easier to read and copy shorter hex-encoded output.Expected output:
Actual output: