cmdutil

package
v2.1.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeBase64 added in v2.1.4

func DecodeBase64(s string) ([]byte, error)

func GetOrReadPin

func GetOrReadPin(s *session.Session) (string, error)

func GetOrSpendKey

func GetOrSpendKey(s *session.Session) (*mixinnet.Key, error)

func LookupAndLoadKeystore

func LookupAndLoadKeystore(name string) ([]byte, error)

func UserMe added in v2.1.4

func UserMe(ctx context.Context, s *session.Session) (*mixin.User, error)

Types

type Keystore

type Keystore struct {
	*mixin.Keystore
	Pin      string `json:"pin,omitempty"`
	SpendKey string `json:"spend_key,omitempty"`
}

func DecodeKeystore

func DecodeKeystore(b []byte) (*Keystore, error)

func (*Keystore) String

func (store *Keystore) String() string

Jump to

Keyboard shortcuts

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