trust

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MineObserver

type MineObserver interface {
	NotifyTrustSignature(peer swarm.Address, expire int64, data []byte) error
	NotifyTrustRollCall(peer swarm.Address, expire int64, data []byte) error
	NotifyTrustRollCallSign(peer swarm.Address, expire int64, data []byte) error
}

type Service

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

func New

func New(streamer p2p.Streamer, logger logging.Logger, base swarm.Address) *Service

func (*Service) Protocol

func (s *Service) Protocol() p2p.ProtocolSpec

func (*Service) PushRollCall

func (s *Service) PushRollCall(ctx context.Context, expire int64, data []byte, skips ...swarm.Address) error

func (*Service) PushSelfTrustSign added in v0.0.4

func (s *Service) PushSelfTrustSign(ctx context.Context, expire int64, data []byte, target swarm.Address) error

func (*Service) PushSignatures

func (s *Service) PushSignatures(ctx context.Context, id uint32, expire int64, data []byte, target swarm.Address, peer swarm.Address) error

func (*Service) PushTrustSign

func (s *Service) PushTrustSign(ctx context.Context, expire int64, data []byte, target swarm.Address, peer swarm.Address) error

func (*Service) SetMineObserver

func (s *Service) SetMineObserver(observer MineObserver)

func (*Service) SetTopology

func (s *Service) SetTopology(driver topology.Driver)

func (*Service) TrustsSignature

func (s *Service) TrustsSignature(ctx context.Context, expire int64, data []byte, needTrust uint64, trusts ...swarm.Address) ([]byte, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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