signatures

package
v0.30.1 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:              "signatures",
	Short:            "Signature verification and creation",
	TraverseChildren: true,
}
View Source
var GenerateCommand = &command.Command{
	Cmd: &cobra.Command{
		Use:     "generate <message>",
		Short:   "Generate the message signature",
		Example: "flow signatures generate 'The quick brown fox jumps over the lazy dog' --signer alice",
		Args:    cobra.ExactArgs(1),
	},
	Flags: &generateFlags,
	RunS:  sign,
}
View Source
var VerifyCommand = &command.Command{
	Cmd: &cobra.Command{
		Use:     "verify <message> <signature> <public key>",
		Short:   "Verify the signature",
		Example: "flow signatures verify 'The quick brown fox jumps over the lazy dog' 99fa...25b af3...52d",
		Args:    cobra.ExactArgs(3),
	},
	Flags: &verifyFlags,
	RunS:  verify,
}

Functions

This section is empty.

Types

type SignatureResult

type SignatureResult struct {
	// contains filtered or unexported fields
}

func (*SignatureResult) JSON

func (s *SignatureResult) JSON() interface{}

func (*SignatureResult) Oneliner

func (s *SignatureResult) Oneliner() string

func (*SignatureResult) String

func (s *SignatureResult) String() string

type VerificationResult

type VerificationResult struct {
	// contains filtered or unexported fields
}

func (*VerificationResult) JSON

func (s *VerificationResult) JSON() interface{}

func (*VerificationResult) Oneliner

func (s *VerificationResult) Oneliner() string

func (*VerificationResult) String

func (s *VerificationResult) String() string

Jump to

Keyboard shortcuts

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