hyperledger-archives / iroha

Iroha - A simple, decentralized ledger
http://iroha.tech
Apache License 2.0
988 stars 298 forks source link

Fix key padding in tests #2172

Closed MBoldyrev closed 5 years ago

MBoldyrev commented 5 years ago

Signed-off-by: Mikhail Boldyrev miboldyrev@gmail.com

Description of the Change

This change brings the keys in tests to a consistent padding scheme, which is necessary because keys generated in various ways can finally be compared somewhere. And when a public key occasionally gets checked by field validator, it must have a fixed length, so it is better to choose a padding scheme which makes keys of the required length.

Benefits

Tests fixed. Padding done in single place.

Possible Drawbacks

Longer keys are harder to read.