aegis_inmemdbs

package
v0.1.21-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const EcdsaAccountsTable = "ecdsa_accounts"
View Source
const ValidatorsTable = "validators"

Variables

View Source
var EcdsaAccountsInMemDB *memdb.MemDB
View Source
var ValidatorInMemDB *memdb.MemDB

Functions

func InitEcdsaAccountsDB

func InitEcdsaAccountsDB()

func InitValidatorDB

func InitValidatorDB()

func InsertEcdsaAccounts

func InsertEcdsaAccounts(ctx context.Context, accounts []ecdsa.Account)

func InsertValidatorsInMemDb

func InsertValidatorsInMemDb(ctx context.Context, vs []Validator)

func ReadOnlyEcdsaAccountFromInMemDb

func ReadOnlyEcdsaAccountFromInMemDb(ctx context.Context, a ecdsa.Account) ecdsa.Account

Types

type EthereumBLSKeySignatureRequest

type EthereumBLSKeySignatureRequest struct {
	Message string `json:"message"`
}

type EthereumBLSKeySignatureRequests

type EthereumBLSKeySignatureRequests struct {
	Map map[string]EthereumBLSKeySignatureRequest
}

type EthereumBLSKeySignatureResponse

type EthereumBLSKeySignatureResponse struct {
	Signature string `json:"signature"`
}

type EthereumBLSKeySignatureResponses

type EthereumBLSKeySignatureResponses struct {
	Map map[string]EthereumBLSKeySignatureResponse
}

func (*EthereumBLSKeySignatureResponses) VerifySignatures

VerifySignatures returns a slice of pubkeys that have been verified with the given signed message, it returns the pubkeys with a 0x prefix string

type Validator

type Validator struct {
	bls_signer.EthBLSAccount
}

func NewValidator

func NewValidator(blsKey bls_signer.EthBLSAccount) Validator

func ReadOnlyValidatorFromInMemDb

func ReadOnlyValidatorFromInMemDb(ctx context.Context, pubkey string) Validator

Jump to

Keyboard shortcuts

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