Documentation
¶
Index ¶
- Variables
- func GetCurrentToken() string
- func NewTLSConfig(config *TLSConfig) (*tls.Config, error)
- func SetCurrentToken(newToken string)
- type AuthManagerProvider
- type AuthProvider
- type BlockPrivateData
- type CacheWithEmpty
- type PrivateBlockDataResolver
- type PrivateClientCache
- type PrivateQLightAPI
- type PrivateStateRootHashValidator
- type PrivateTransactionData
- type QLightCacheKey
- type RunningPeerAuthUpdater
- type TLSConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var TokenCredentialsProvider rpc.HttpCredentialsProviderFunc = func(ctx context.Context) (string, error) { return GetCurrentToken(), nil }
Functions ¶
func GetCurrentToken ¶
func GetCurrentToken() string
func SetCurrentToken ¶
func SetCurrentToken(newToken string)
Types ¶
type AuthManagerProvider ¶
type AuthManagerProvider func() security.AuthenticationManager
type AuthProvider ¶
func NewAuthProvider ¶
func NewAuthProvider(privateStateManager mps.PrivateStateManager, authManagerProvider AuthManagerProvider) AuthProvider
type BlockPrivateData ¶
type BlockPrivateData struct { BlockHash common.Hash PSI types.PrivateStateIdentifier PrivateStateRoot common.Hash PrivateTransactions []PrivateTransactionData }
type CacheWithEmpty ¶
type CacheWithEmpty interface { Cache(privateTxData *qlightptm.CachablePrivateTransactionData) error CheckAndAddEmptyToCache(hash common.EncryptedPayloadHash) }
type PrivateBlockDataResolver ¶
type PrivateBlockDataResolver interface {
PrepareBlockPrivateData(block *types.Block, psi string) (*BlockPrivateData, error)
}
func NewPrivateBlockDataResolver ¶
func NewPrivateBlockDataResolver(privateStateManager mps.PrivateStateManager, ptm private.PrivateTransactionManager) PrivateBlockDataResolver
type PrivateClientCache ¶
type PrivateClientCache interface { PrivateStateRootHashValidator AddPrivateBlock(blockPrivateData BlockPrivateData) error CheckAndAddEmptyEntry(hash common.EncryptedPayloadHash) }
func NewClientCache ¶
func NewClientCache(db ethdb.Database) (PrivateClientCache, error)
func NewClientCacheWithEmpty ¶
func NewClientCacheWithEmpty(db ethdb.Database, cacheWithEmpty CacheWithEmpty, gocache *gocache.Cache) (PrivateClientCache, error)
type PrivateQLightAPI ¶
type PrivateQLightAPI struct {
// contains filtered or unexported fields
}
func NewPrivateQLightAPI ¶
func NewPrivateQLightAPI(peerUpdater RunningPeerAuthUpdater, rpcClient *rpc.Client) *PrivateQLightAPI
NewPublicEthereumAPI creates a new Ethereum protocol API for full nodes.
func (*PrivateQLightAPI) GetCurrentToken ¶
func (p *PrivateQLightAPI) GetCurrentToken() string
func (*PrivateQLightAPI) SetCurrentToken ¶
func (p *PrivateQLightAPI) SetCurrentToken(token string)
type PrivateTransactionData ¶
type PrivateTransactionData struct { Hash *common.EncryptedPayloadHash Payload []byte Extra *engine.ExtraMetadata IsSender bool }
func (*PrivateTransactionData) ToCachable ¶
func (d *PrivateTransactionData) ToCachable() *qlightptm.CachablePrivateTransactionData
type QLightCacheKey ¶
type QLightCacheKey struct { BlockHash common.Hash PSI types.PrivateStateIdentifier }
func (*QLightCacheKey) String ¶
func (k *QLightCacheKey) String() string
type RunningPeerAuthUpdater ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.