Skip to content

[suggestion] (de-)serialize PrivateKey with algorithm field #4287

@0x009922

Description

@0x009922

iroha_crypto::PrivateKey serialized form contains digest_function and payload fields:

[private_key]
digest_function = "ed25519"
payload = "8f4c15e5d664da3f13778801d23d4e89b76e94c1b94b389544168b6cb894f84f8ba62848cf767d72e7f7f4b9d2d7ba07fee33760f79abe5597a51520e292a0cb"

I propose rename it to algorithm, to be concise and to reflect internal representation:

[private_key]
algorithm = "ed25519"
payload = "8f4c15e5d664da3f13778801d23d4e89b76e94c1b94b389544168b6cb894f84f8ba62848cf767d72e7f7f4b9d2d7ba07fee33760f79abe5597a51520e292a0cb"

Metadata

Metadata

Assignees

Labels

config-changesChanges in configuration and start up of the Irohacryptogood first issueGood for newcomersiroha2-devThe re-implementation of a BFT hyperledger in RUST

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions