record

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TeeInfo

type TeeInfo struct {
	EndPoint string
	Type     uint8
}

type TeeRecord

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

func (*TeeRecord) DeleteTee

func (t *TeeRecord) DeleteTee(pubkeyhex string)

func (*TeeRecord) GetAllMarkerTeeEndpoint

func (t *TeeRecord) GetAllMarkerTeeEndpoint() []string

func (*TeeRecord) GetAllTeeEndpoint

func (t *TeeRecord) GetAllTeeEndpoint() []string

func (*TeeRecord) GetAllTeePubkeyHex

func (t *TeeRecord) GetAllTeePubkeyHex() []string

func (*TeeRecord) GetAllVerifierTeeEndpoint

func (t *TeeRecord) GetAllVerifierTeeEndpoint() []string

func (*TeeRecord) GetTee

func (t *TeeRecord) GetTee(pubkeyhex string) (TeeInfo, error)

func (*TeeRecord) GetTeePubkeyByEndpoint

func (t *TeeRecord) GetTeePubkeyByEndpoint(endpoint string) ([]byte, error)

func (*TeeRecord) GetTeePubkeyHexByEndpoint

func (t *TeeRecord) GetTeePubkeyHexByEndpoint(endpoint string) (string, error)

func (*TeeRecord) Length

func (t *TeeRecord) Length() int

func (*TeeRecord) SaveTee

func (t *TeeRecord) SaveTee(pubkeyhex, endPoint string, teeType uint8) error

SaveTee saves or updates tee information

type TeeRecorder

type TeeRecorder interface {
	// SaveTee saves or updates tee information
	SaveTee(pubkeyhex, endPoint string, teeType uint8) error
	//
	GetTee(pubkeyhex string) (TeeInfo, error)
	//
	GetTeePubkeyHexByEndpoint(endpoint string) (string, error)
	//
	GetTeePubkeyByEndpoint(endpoint string) ([]byte, error)
	//
	DeleteTee(pubkeyhex string)
	//
	GetAllTeePubkeyHex() []string
	//
	GetAllTeeEndpoint() []string
	//
	GetAllMarkerTeeEndpoint() []string
	//
	GetAllVerifierTeeEndpoint() []string
	//
	Length() int
}

func NewTeeRecord

func NewTeeRecord() TeeRecorder

Jump to

Keyboard shortcuts

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