Remove type byte from publicBase64Key in keytool show
command
#4311
Labels
dev-tools
Issues related to the Developer Tools Team
enhancement
New feature or request
good first issue
Good for newcomers
Description
Display the publicBase64Key without the type byte in
keytool show
command. The type byte is printed asflag
already, so the information is still available in the output.Current output for a file with
iota keytool show *.key
(generated withiota keytool generate ed25519
)publicBase64Key to bytes =
0,223,112,27,127,17,8,58,198,90,115,147,142,93,136,102,192,233,68,106,239,227,255,131,123,87,158,156,137,59,216,167,193
(starts with 0 byte, 33 bytes)should look like this instead
publicBase64Key to bytes =
223,112,27,127,17,8,58,198,90,115,147,142,93,136,102,192,233,68,106,239,227,255,131,123,87,158,156,137,59,216,167,193
(doesn't start with 0 byte, only 32 bytes)Motivation
iotax_getLatestIotaSystemState
and validator.info contains the base64 encoded public key without the type byte andkeytool show
currently shows the base64 key with the key type byte, requiring additional conversions to compare them.For validators it's better if they can just use
iota keytool show
and compare two the base64 strings directly.Requirements
Change
iota/crates/iota/src/keytool.rs
Line 1167 in d899a6c
Base64::encode(pk.as_ref())
Are you planning to do it yourself in a pull request?
No.
The text was updated successfully, but these errors were encountered: