crypto

package
v0.0.0-...-4fa03f3 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateSig

func ValidateSig(key crypto.PubKey, address string, sig string) sdk.Error

ValidateSig validates that the hex encoded sig is the signed sha512(address) by the corresponding private key

Types

type Signer

type Signer struct {
	AccAddress sdk.AccAddress
	PrivKey    crypto.PrivKey
	// contains filtered or unexported fields
}

Signer is the signer for posting redeem tx

func NewSigner

func NewSigner(accAddress sdk.AccAddress, privKey crypto.PrivKey) *Signer

NewSigner is the constructor for signer

func (*Signer) SendTx

func (s *Signer) SendTx(cliContext *context.CLIContext, cdc *codec.Codec, msg sdk.Msg) error

SendTx calls the test handler with a message.

Jump to

Keyboard shortcuts

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