Versions in this module Expand all Collapse all v22 v22.4.2 Apr 28, 2022 Changes in this version + func NewPrivateExtensionProxyAPI(privacyService *PrivacyService) interface + func NewSubscriptionHandler(node *node.Node, psi types.PrivateStateIdentifier, ...) *subscriptionHandler + type APIBackendHelper interface + AccountExtraDataStateGetterByNumber func(ctx context.Context, number rpc.BlockNumber) (vm.AccountExtraDataStateGetter, error) + CurrentBlock func() *types.Block + IsPrivacyMarkerTransactionCreationEnabled func() bool + PSMR func() mps.PrivateStateMetadataResolver + SupportsMultitenancy func(rpcCtx context.Context) (*proto.PreAuthenticatedAuthenticationToken, bool) + type ChainAccessor interface + CurrentBlock func() *types.Block + GetBlockByHash func(common.Hash) *types.Block + State func() (*state.StateDB, mps.PrivateStateRepository, error) + StateAt func(root common.Hash) (*state.StateDB, mps.PrivateStateRepository, error) + StateAtPSI func(root common.Hash, psi types.PrivateStateIdentifier) (*state.StateDB, *state.StateDB, error) + type Client interface + Close func() + NextNonce func(from common.Address) (uint64, error) + SubscribeToLogs func(query ethereum.FilterQuery) (<-chan types.Log, ethereum.Subscription, error) + TransactionByHash func(hash common.Hash) (*types.Transaction, error) + TransactionInBlock func(blockHash common.Hash, txIndex uint) (*types.Transaction, error) + type DataHandler interface + Load func() (map[types.PrivateStateIdentifier]map[common.Address]*ExtensionContract, error) + Save func(...) error + type DefaultServicesFactory struct + func NewServicesFactory(stack *node.Node, ptm private.PrivateTransactionManager, ...) (*DefaultServicesFactory, error) + func (factory *DefaultServicesFactory) AccountManager() *accounts.Manager + func (factory *DefaultServicesFactory) DataHandler() DataHandler + func (factory *DefaultServicesFactory) StateFetcher() *StateFetcher + type EthclientManagementContractFacade struct + func (facade EthclientManagementContractFacade) Caller(managementAddress common.Address) (*extensionContracts.ContractExtenderCaller, error) + func (facade EthclientManagementContractFacade) Close() + func (facade EthclientManagementContractFacade) Deploy(args *bind.TransactOpts, toExtend common.Address, ...) (*types.Transaction, error) + func (facade EthclientManagementContractFacade) GetAllVoters(addressToVoteOn common.Address) ([]common.Address, error) + func (facade EthclientManagementContractFacade) Transactor(managementAddress common.Address) (*extensionContracts.ContractExtenderTransactor, error) + type ExtensionContract struct + ContractExtended common.Address + CreationData []byte + Initiator common.Address + ManagementContractAddress common.Address + Recipient common.Address + RecipientPtmKey string + type InProcessClient struct + func NewInProcessClient(client *ethclient.Client) *InProcessClient + func (client *InProcessClient) Close() + func (client *InProcessClient) NextNonce(from common.Address) (uint64, error) + func (client *InProcessClient) SubscribeToLogs(query ethereum.FilterQuery) (<-chan types.Log, ethereum.Subscription, error) + func (client *InProcessClient) TransactionByHash(hash common.Hash) (*types.Transaction, error) + func (client *InProcessClient) TransactionInBlock(blockHash common.Hash, txIndex uint) (*types.Transaction, error) + type JsonFileDataHandler struct + func NewJsonFileDataHandler(dataDirectory string) *JsonFileDataHandler + func (handler *JsonFileDataHandler) Load() (map[types.PrivateStateIdentifier]map[common.Address]*ExtensionContract, error) + func (handler *JsonFileDataHandler) Save(...) error + type ManagementContractFacade interface + Caller func(managementAddress common.Address) (*extensionContracts.ContractExtenderCaller, error) + Close func() + Deploy func(args *bind.TransactOpts, toExtend common.Address, ...) (*types.Transaction, error) + GetAllVoters func(addressToVoteOn common.Address) ([]common.Address, error) + Transactor func(managementAddress common.Address) (*extensionContracts.ContractExtenderTransactor, error) + func NewManagementContractFacade(client *ethclient.Client) ManagementContractFacade + type PrivacyService struct + func New(stack *node.Node, ptm private.PrivateTransactionManager, ...) (*PrivacyService, error) + func (service *PrivacyService) CheckIfContractCreator(blockHash common.Hash, address common.Address, ...) bool + func (service *PrivacyService) GenerateTransactOptions(txa ethapi.SendTxArgs) (*bind.TransactOpts, error) + func (service *PrivacyService) GetAllParticipants(blockHash common.Hash, address common.Address, ...) ([]string, error) + func (service *PrivacyService) Start() error + func (service *PrivacyService) Stop() error + type PrivateExtensionAPI struct + func NewPrivateExtensionAPI(privacyService *PrivacyService) *PrivateExtensionAPI + func (api *PrivateExtensionAPI) ActiveExtensionContracts(ctx context.Context) []ExtensionContract + func (api *PrivateExtensionAPI) ApproveExtension(ctx context.Context, addressToVoteOn common.Address, vote bool, ...) (string, error) + func (api *PrivateExtensionAPI) CancelExtension(ctx context.Context, extensionContract common.Address, txa ethapi.SendTxArgs) (string, error) + func (api *PrivateExtensionAPI) ExtendContract(ctx context.Context, toExtend common.Address, newRecipientPtmPublicKey string, ...) (string, error) + func (api *PrivateExtensionAPI) GetExtensionStatus(ctx context.Context, extensionContract common.Address) (string, error) + type PrivateExtensionProxyAPI struct + func (api *PrivateExtensionProxyAPI) ActiveExtensionContracts(ctx context.Context) []ExtensionContract + func (api *PrivateExtensionProxyAPI) ApproveExtension(ctx context.Context, addressToVoteOn common.Address, vote bool, ...) (string, error) + func (api *PrivateExtensionProxyAPI) CancelExtension(ctx context.Context, extensionContract common.Address, txa ethapi.SendTxArgs) (string, error) + func (api *PrivateExtensionProxyAPI) ExtendContract(ctx context.Context, toExtend common.Address, newRecipientPtmPublicKey string, ...) (string, error) + type ServicesFactory interface + AccountManager func() *accounts.Manager + DataHandler func() DataHandler + StateFetcher func() *StateFetcher + type StateFetcher struct + func NewStateFetcher(chainAccessor ChainAccessor) *StateFetcher + func (fetcher *StateFetcher) GetAddressStateFromBlock(blockHash common.Hash, addressToFetch common.Address, ...) ([]byte, error) + func (fetcher *StateFetcher) GetPrivacyMetaData(blockHash common.Hash, address common.Address, ...) (*state.PrivacyMetadata, error) + func (fetcher *StateFetcher) GetStorageRoot(blockHash common.Hash, address common.Address, ...) (common.Hash, error) Other modules containing this package github.com/baptiste-b-pegasys/quorum