moonbeam

package
v0.0.0-...-a26e058 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UuidSize     = 32
	TaskInterval = 12
)
View Source
const ChainName = "Moonbeam"

Variables

This section is empty.

Functions

func NewChainAdaptor

func NewChainAdaptor(conf *config.Config) (blockchain.KeyAdaptor, error)

Types

type KeyAdaptor

type KeyAdaptor struct {
	fallback.KeyAdaptor
	// contains filtered or unexported fields
}

func (*KeyAdaptor) GetSocialKey

func (*KeyAdaptor) GetSupportChain

func (a *KeyAdaptor) GetSupportChain(req *keylocker.SupportChainReq) (*keylocker.SupportChainRep, error)

func (*KeyAdaptor) SetSocialKey

type KeyLockerClient

type KeyLockerClient struct {
	ChainID *big.Int
	PrivKey *ecdsa.PrivateKey
	// contains filtered or unexported fields
}

func NewKeyLockerClient

func NewKeyLockerClient(conf *config.Config) (*KeyLockerClient, error)

func (KeyLockerClient) AppendSocialKey

func (kl KeyLockerClient) AppendSocialKey(uuid [UuidSize]byte, keys [][]byte) error

func (KeyLockerClient) QuerySocialKey

func (kl KeyLockerClient) QuerySocialKey(uuid [UuidSize]byte) ([][]byte, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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