types

package
v0.0.0-...-162b478 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: Apache-2.0, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SigTypeUnknown   = crypto.SigTypeUnknown
	SigTypeSecp256k1 = crypto.SigTypeSecp256k1
	SigTypeBLS       = crypto.SigTypeBLS
	SigTypeDelegated = crypto.SigTypeDelegated
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	*address.Address
}

func NewAddressFromString

func NewAddressFromString(value string) (Address, error)

func (*Address) UnmarshalText

func (a *Address) UnmarshalText(value []byte) error

type FIL

type FIL struct {
	types.FIL
}

func (*FIL) Scan

func (b *FIL) Scan(value any) error

type KeyInfo

type KeyInfo struct {
	Type       crypto.SigType
	PrivateKey []byte
}

func ReadWallet

func ReadWallet(wallet Wallet) (KeyInfo, error)

func (*KeyInfo) UnmarshalJSON

func (ki *KeyInfo) UnmarshalJSON(value []byte) error

type Signature

type Signature = crypto.Signature

type Wallet

type Wallet struct {
	Path    string  `toml:"path"`
	Address Address `toml:"address"`
}

Jump to

Keyboard shortcuts

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