cmd

package
v0.10.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 33 Imported by: 0

README

Key Sign Tool

Rosetta CLI has a key sign tool, which you can use to sign and verify various curves supported by rosetta-specifications. This should only be used for local development. Never share private keys anywhere.

Usage

Key Generate
rosetta-cli key:gen --curve-type secp256k1

Curve Type options are specified by rosetta-specifications

Sign
rosetta-cli key:sign --configuration-file config.json

A sample config file is located here

Required fields includes

  • pub_key
  • private_key
  • signing_payload
Verify
rosetta-cli key:verify --configuration-file verify.json

A sample config file is located here

Required fields includes

  • pub_key
  • signing_payload
  • signature

Troubleshoot

  • account_identifier field in signing_payload field should've a dummy address for providing valid payload.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InfoMetaData string

	// Config is the populated *configuration.Configuration from
	// the configurationFile. If none is provided, this is set
	// to the default settings.
	Config *configuration.Configuration

	// Context is the context to use for this invocation of the cli.
	Context context.Context

	// SignalReceived is set to true when a signal causes us to exit. This makes
	// determining the error message to show on exit much more easy.
	SignalReceived = false

	// OnlyChanges is a boolean indicating if only the balance changes should be
	// logged to the console.
	OnlyChanges bool
)

Functions

func Execute

func Execute() error

Execute handles all invocations of the rosetta-cli cmd.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL