mapper

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BaseMapperName = "base"
	QSCName        = "qsc/[%s]"
)

Variables

This section is empty.

Functions

func GetMainStoreKey

func GetMainStoreKey() string

Types

type MainMapper

type MainMapper struct {
	*mapper.BaseMapper
}

func NewMainMapper

func NewMainMapper() *MainMapper

func (*MainMapper) Copy

func (mapper *MainMapper) Copy() mapper.IMapper

func (*MainMapper) GetQsc

func (mapper *MainMapper) GetQsc(qscname string) (qscinfo *QscInfo)

func (*MainMapper) GetRoot

func (mapper *MainMapper) GetRoot() crypto.PubKey

获取CA

func (*MainMapper) MapperName

func (mapper *MainMapper) MapperName() string

func (*MainMapper) SetQsc

func (mapper *MainMapper) SetQsc(qscname string, qscinfo *QscInfo) bool

func (*MainMapper) SetRootCA

func (mapper *MainMapper) SetRootCA(pubKey crypto.PubKey) error

保存CA

type QscInfo

type QscInfo struct {
	Qscname     string         `json:"qscname"`
	BankAddr    btypes.Address `json:"pubkeybank"`
	CreateAddr  btypes.Address `json:"createaddr"`
	QscPubkey   crypto.PubKey  `json:"qscpubkey"`
	Extrate     string         `json:"extrate"`
	CAqsc       []byte         `json:"caqsc"`
	CAbanker    []byte         `json:"cabanker"`
	Description string         `json:"description"`
}

Jump to

Keyboard shortcuts

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