cmd

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: AGPL-3.0, ISC Imports: 66 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxBodyBytes int64 = 4194304 // 4MB
)

Variables

View Source
var NoParent = []byte{0x00}
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 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