keymanager

package
v0.2012.2 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2020 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package keymanager implements the key manager management application.

Index

Constants

View Source
const (
	// AppID is the unique application identifier.
	AppID uint8 = 0x07

	// AppName is the ABCI application name.
	AppName string = "999_keymanager"
)

Variables

View Source
var (
	// EventType is the ABCI event type for key manager events.
	EventType = api.EventTypeForApp(AppName)

	// QueryApp is a query for filtering transactions processed by the
	// key manager application.
	QueryApp = api.QueryForApp(AppName)

	// KeyStatusUpdate is an ABCI event attribute key for a key manager
	// status update (value is a CBOR serialized key manager status).
	KeyStatusUpdate = []byte("status")
)

Functions

func New

func New() tmapi.Application

New constructs a new keymanager application instance.

Types

type Query

type Query interface {
	Status(context.Context, common.Namespace) (*keymanager.Status, error)
	Statuses(context.Context) ([]*keymanager.Status, error)
	Genesis(context.Context) (*keymanager.Genesis, error)
}

Query is the key manager query interface.

type QueryFactory

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

QueryFactory is the key manager query factory.

func NewQueryFactory

func NewQueryFactory(state abciAPI.ApplicationQueryState) *QueryFactory

NewQueryFactory returns a new QueryFactory backed by the given state instance.

func (*QueryFactory) QueryAt

func (sf *QueryFactory) QueryAt(ctx context.Context, height int64) (Query, error)

QueryAt returns the key manager query interface for a specific height.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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