signer

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateKeyFromSeed added in v1.3.0

func GenerateKeyFromSeed(seed []byte, index uint32) crypto.PrivKey

GenerateKeyFromSeed generates a private key from the provided seed and index

func SignTx added in v1.3.0

func SignTx(tx *std.Tx, key crypto.PrivKey, cfg SignCfg) error

SignTx signs the specified transaction using the provided key and config

Types

type SignCfg added in v1.3.0

type SignCfg struct {
	ChainID       string // the ID of the chain
	AccountNumber uint64 // the account number of the signer
	Sequence      uint64 // the Sequence of the signer
}

SignCfg specifies the sign configuration

Jump to

Keyboard shortcuts

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