cmd

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: AGPL-3.0 Imports: 76 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BoltBlockStoreFileName = "blocks.db"
	TxIndexerStoreFileName = "tx_indexer.db"
)
View Source
const (
	MaxBodyBytes int64 = 4194304 // 4MB
)

Variables

View Source
var (
	Opts = &allOptions{}
)

Functions

func New

func New() *alphabillApp

New creates a new Alphabill application

func NewKeysConf

func NewKeysConf(conf *baseConfiguration, relativeDir string) *keysConfig

Types

type FeeCreditManager added in v0.2.0

type FeeCreditManager interface {
	GetFeeCredit(ctx context.Context, cmd fees.GetFeeCreditCmd) (*wallet.Bill, error)
	AddFeeCredit(ctx context.Context, cmd fees.AddFeeCmd) (*fees.AddFeeCmdResponse, error)
	ReclaimFeeCredit(ctx context.Context, cmd fees.ReclaimFeeCmd) (*fees.ReclaimFeeCmdResponse, error)
	Close()
}

type Keys

type Keys struct {
	SigningPrivateKey    abcrypto.Signer
	EncryptionPrivateKey crypto.PrivKey
}

func GenerateKeys

func GenerateKeys() (*Keys, error)

GenerateKeys generates a new signing and encryption key.

func LoadKeys

func LoadKeys(file string, generateNewIfNotExist bool, overwrite bool) (*Keys, error)

LoadKeys loads signing and encryption keys.

func (*Keys) WriteTo

func (k *Keys) WriteTo(file string) error

type Option

type Option func(*Options)

type Options

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

type TrustBase added in v0.1.1

type TrustBase struct {
	RootValidators []*genesis.PublicKeyInfo `json:"root_validators"`
}

TrustBase json schema for trust base file.

Jump to

Keyboard shortcuts

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