poets

package
v1.7.7 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(db sql.Executor, ref types.PoetProofRef, poet, serviceID []byte, roundID string) error

Add adds a poet for a given ref.

func Get

func Get(db sql.Executor, ref types.PoetProofRef) (poet []byte, err error)

Get gets a PoET for a given ref.

func GetBlobSizes added in v1.4.1

func GetBlobSizes(db sql.Executor, refs [][]byte) (sizes []int, err error)

GetBlobSizes returns the sizes of the blobs corresponding to PoETs with specified refs. For non-existent PoETs, the corresponding items are set to -1.

func GetRef

func GetRef(db sql.Executor, poetID []byte, roundID string) (ref types.PoetProofRef, err error)

GetRef gets a PoET ref for a given service ID and round ID.

func Has

func Has(db sql.Executor, ref types.PoetProofRef) (bool, error)

Has checks if a PoET exists by the given ref.

func LoadBlob added in v1.4.1

func LoadBlob(ctx context.Context, db sql.Executor, ref []byte, blob *sql.Blob) error

LoadBlob loads PoET as an encoded blob, ready to be sent over the wire.

Types

This section is empty.

Jump to

Keyboard shortcuts

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