Versions in this module Expand all Collapse all v22 v22.4.2 Apr 28, 2022 Changes in this version + var TokenCredentialsProvider rpc.HttpCredentialsProviderFunc = func(ctx context.Context) (string, error) + func GetCurrentToken() string + func NewTLSConfig(config *TLSConfig) (*tls.Config, error) + func SetCurrentToken(newToken string) + type AuthManagerProvider func() security.AuthenticationManager + type AuthProvider interface + Authorize func(token string, psi string) error + Initialize func() error + func NewAuthProvider(privateStateManager mps.PrivateStateManager, ...) AuthProvider + type BlockPrivateData struct + BlockHash common.Hash + PSI types.PrivateStateIdentifier + PrivateStateRoot common.Hash + PrivateTransactions []PrivateTransactionData + type CacheWithEmpty interface + Cache func(privateTxData *qlightptm.CachablePrivateTransactionData) error + CheckAndAddEmptyToCache func(hash common.EncryptedPayloadHash) + type PrivateBlockDataResolver interface + PrepareBlockPrivateData func(block *types.Block, psi string) (*BlockPrivateData, error) + func NewPrivateBlockDataResolver(privateStateManager mps.PrivateStateManager, ...) PrivateBlockDataResolver + type PrivateClientCache interface + AddPrivateBlock func(blockPrivateData BlockPrivateData) error + CheckAndAddEmptyEntry func(hash common.EncryptedPayloadHash) + func NewClientCache(db ethdb.Database) (PrivateClientCache, error) + func NewClientCacheWithEmpty(db ethdb.Database, cacheWithEmpty CacheWithEmpty, gocache *gocache.Cache) (PrivateClientCache, error) + type PrivateQLightAPI struct + func NewPrivateQLightAPI(peerUpdater RunningPeerAuthUpdater, rpcClient *rpc.Client) *PrivateQLightAPI + func (p *PrivateQLightAPI) GetCurrentToken() string + func (p *PrivateQLightAPI) SetCurrentToken(token string) + type PrivateStateRootHashValidator interface + ValidatePrivateStateRoot func(blockHash common.Hash, blockPublicStateRoot common.Hash) error + type PrivateTransactionData struct + Extra *engine.ExtraMetadata + Hash *common.EncryptedPayloadHash + IsSender bool + Payload []byte + func (d *PrivateTransactionData) ToCachable() *qlightptm.CachablePrivateTransactionData + type QLightCacheKey struct + BlockHash common.Hash + PSI types.PrivateStateIdentifier + func (k *QLightCacheKey) String() string + type RunningPeerAuthUpdater interface + UpdateTokenForRunningQPeers func(token string) error + type TLSConfig struct + CACertFileName string + CertFileName string + CipherSuites string + ClientAuth int + ClientCACertFileName string + InsecureSkipVerify bool + KeyFileName string + ServerName string