Skip to content

Encoding error of priv_validator_key.json when sharding for Horcrux #2460

@mazzy89

Description

@mazzy89

Description

In order to increase the security of validator keys, Horcrux comes into help and allow to shard a private validator key making sure blocks can be signed only a set number of shards keys are retrieved. This increases not only the security but also the fault-tolerance of a validator.

Horcrux uses the a package from ComeBFT to encode/decode private key while we use Amino. This makes the creation of the shards from the ED25519 private key failing with an error like:

Error: encoding/hex: invalid byte: U+0067 'g'

when the command is executed.

$ horcrux create-ed25519-shards --chain-id cosmoshub-4 --key-file /path/to/cosmoshub/priv_validator_key.json --threshold 2 --shards 3

How could we have Horcrux setup for a Gnolang chain?

cc @r3v4s @albttx @sw360cab @zivkovicmilos

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Need lots of help

    Status

    Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions