Documentation ¶
Index ¶
- Constants
- func NewChainAdaptor(conf *config.Config) (blockchain.KeyAdaptor, error)
- type KeyAdaptor
- func (a *KeyAdaptor) GetSocialKey(ctx context.Context, req *keylocker.GetSocialKeyReq) (*keylocker.GetSocialKeyRep, error)
- func (a *KeyAdaptor) GetSupportChain(req *keylocker.SupportChainReq) (*keylocker.SupportChainRep, error)
- func (a *KeyAdaptor) SetSocialKey(ctx context.Context, req *keylocker.SetSocialKeyReq) (*keylocker.SetSocialKeyRep, error)
- type KeyLockerClient
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 (a *KeyAdaptor) GetSocialKey(ctx context.Context, req *keylocker.GetSocialKeyReq) (*keylocker.GetSocialKeyRep, error)
func (*KeyAdaptor) GetSupportChain ¶
func (a *KeyAdaptor) GetSupportChain(req *keylocker.SupportChainReq) (*keylocker.SupportChainRep, error)
func (*KeyAdaptor) SetSocialKey ¶
func (a *KeyAdaptor) SetSocialKey(ctx context.Context, req *keylocker.SetSocialKeyReq) (*keylocker.SetSocialKeyRep, error)
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)
Click to show internal directories.
Click to hide internal directories.