wallet

package
v0.0.0-...-a4b5995 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GenerateDesc = "Generate a new secp256k1 keypair on a smartcard via OpenPGP"
)
View Source
const (
	PubKeyDesc = "Print the uncompressed secp256k1 public key on the card"
)
View Source
const (
	SignDesc = "Print the uncompressed secp256k1 public key on the card"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Generate

type Generate struct {
	UserPin  string
	AdminPin string
	Force    bool
}

func (*Generate) Execute

func (g *Generate) Execute(
	_ context.Context,
	flagSet *flag.FlagSet,
	_ ...any,
) subcommands.ExitStatus

func (*Generate) Name

func (*Generate) Name() string

func (*Generate) SetFlags

func (g *Generate) SetFlags(flagSet *flag.FlagSet)

func (*Generate) Synopsis

func (*Generate) Synopsis() string

func (*Generate) Usage

func (*Generate) Usage() string

type PubKey

type PubKey struct {
	UserPin  string
	AdminPin string
}

func (*PubKey) Execute

func (p *PubKey) Execute(
	_ context.Context,
	flagSet *flag.FlagSet,
	_ ...any,
) subcommands.ExitStatus

func (*PubKey) Name

func (*PubKey) Name() string

func (*PubKey) SetFlags

func (p *PubKey) SetFlags(flagSet *flag.FlagSet)

func (*PubKey) Synopsis

func (*PubKey) Synopsis() string

func (*PubKey) Usage

func (*PubKey) Usage() string

type Sign

type Sign struct {
	UserPin  string
	AdminPin string
	Hash     string
}

func (*Sign) Execute

func (s *Sign) Execute(
	_ context.Context,
	flagSet *flag.FlagSet,
	_ ...any,
) subcommands.ExitStatus

func (*Sign) Name

func (*Sign) Name() string

func (*Sign) SetFlags

func (s *Sign) SetFlags(flagSet *flag.FlagSet)

func (*Sign) Synopsis

func (*Sign) Synopsis() string

func (*Sign) Usage

func (*Sign) Usage() string

Jump to

Keyboard shortcuts

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