Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var EthereumCommand cli.Command
EthereumCommand contains the definition of the ethereum command-line subcommand and its own subcommands.
var EthereumSigningCommand = cli.Command{ Name: "ethereum", Usage: "Ethereum signatures calculation", Subcommands: []cli.Command{ { Name: "sign", Usage: "Sign a message using the operator's key", Description: ethereumSignDescription, Action: EthereumSign, ArgsUsage: "[message]", Flags: []cli.Flag{ cli.StringFlag{ Name: "eth-key-file,k", Usage: "Path to the ethereum key file. " + "If not provided read the path from a config file.", }, cli.StringFlag{ Name: "output-file,o", Usage: "Output file for the signature", }, }, }, { Name: "verify", Usage: "Verifies a signature", Description: ethereumVerifyDescription, Action: EthereumVerify, ArgsUsage: "[ethereum-signature]", Flags: []cli.Flag{ cli.StringFlag{ Name: "input-file,i", Usage: "Input file with the signature", }, }, }, }, }
EthereumSigningCommand contains the definition of the `signing ethereum` command-line subcommand and its own subcommands.
var SigningCommand cli.Command
SigningCommand contains the definition of the `signing` command-line subcommand and its own subcommands.
var StartCommand cli.Command
StartCommand contains the definition of the start command-line subcommand.
Functions ¶
func DecryptKeyShare ¶ added in v1.3.0
DecryptKeyShare decrypt key shares for given keep using provided operator config.
func EthereumSign ¶ added in v1.5.0
EthereumSign signs a string using operator's ethereum key.
func EthereumVerify ¶ added in v1.5.0
EthereumVerify verifies if a signature was calculated by a signer with the given ethereum address.
func SignDigest ¶ added in v1.3.0
SignDigest signs a given digest using key shares from the provided directory.