identities

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMalfeasanceBlob

func GetMalfeasanceBlob(db sql.Executor, nodeID []byte) ([]byte, error)

GetMalfeasanceBlob returns the malfeasance proof in raw bytes for the given identity.

func GetMalfeasanceProof

func GetMalfeasanceProof(db sql.Executor, nodeID types.NodeID) (*types.MalfeasanceProof, error)

GetMalfeasanceProof returns the malfeasance proof for the given identity.

func GetMalicious

func GetMalicious(db sql.Executor) ([]types.NodeID, error)

func IsMalicious

func IsMalicious(db sql.Executor, nodeID types.NodeID) (bool, error)

IsMalicious returns true if identity is known to be malicious.

func SetMalicious

func SetMalicious(db sql.Executor, nodeID types.NodeID, proof []byte, received time.Time) error

SetMalicious records identity as malicious.

Types

This section is empty.

Jump to

Keyboard shortcuts

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