Documentation ¶
Overview ¶
Package private is a generated GoMock package.
Index ¶
- func FetchPrivateTransaction(data []byte) (*types.Transaction, []string, *engine.ExtraMetadata, error)
- func FetchPrivateTransactionWithPTM(data []byte, ptm PrivateTransactionManager) (*types.Transaction, []string, *engine.ExtraMetadata, error)
- func FromEnvironmentOrNil(name string) (http2.Config, error)
- func GetLegacyEnvironmentConfig() (http2.Config, error)
- func InitialiseConnection(cfg http2.Config, isLightClient bool) error
- func IsQuorumPrivacyEnabled() bool
- type HasRPCClient
- type Identifiable
- type MockPrivateTransactionManager
- func (m *MockPrivateTransactionManager) DecryptPayload(arg0 common.DecryptRequest) ([]byte, *engine.ExtraMetadata, error)
- func (m *MockPrivateTransactionManager) EXPECT() *MockPrivateTransactionManagerMockRecorder
- func (m *MockPrivateTransactionManager) EncryptPayload(arg0 []byte, arg1 string, arg2 []string, arg3 *engine.ExtraMetadata) ([]byte, error)
- func (m *MockPrivateTransactionManager) GetMandatory(arg0 common.EncryptedPayloadHash) ([]string, error)
- func (m *MockPrivateTransactionManager) GetParticipants(arg0 common.EncryptedPayloadHash) ([]string, error)
- func (m *MockPrivateTransactionManager) Groups() ([]engine.PrivacyGroup, error)
- func (m *MockPrivateTransactionManager) HasFeature(arg0 engine.PrivateTransactionManagerFeature) bool
- func (m *MockPrivateTransactionManager) IsSender(arg0 common.EncryptedPayloadHash) (bool, error)
- func (m *MockPrivateTransactionManager) Name() string
- func (m *MockPrivateTransactionManager) Receive(arg0 common.EncryptedPayloadHash) (string, []string, []byte, *engine.ExtraMetadata, error)
- func (m *MockPrivateTransactionManager) ReceiveRaw(arg0 common.EncryptedPayloadHash) ([]byte, string, *engine.ExtraMetadata, error)
- func (m *MockPrivateTransactionManager) Send(arg0 []byte, arg1 string, arg2 []string, arg3 *engine.ExtraMetadata) (string, []string, common.EncryptedPayloadHash, error)
- func (m *MockPrivateTransactionManager) SendSignedTx(arg0 common.EncryptedPayloadHash, arg1 []string, arg2 *engine.ExtraMetadata) (string, []string, []byte, error)
- func (m *MockPrivateTransactionManager) StoreRaw(arg0 []byte, arg1 string) (common.EncryptedPayloadHash, error)
- type MockPrivateTransactionManagerMockRecorder
- func (mr *MockPrivateTransactionManagerMockRecorder) DecryptPayload(arg0 interface{}) *gomock.Call
- func (mr *MockPrivateTransactionManagerMockRecorder) EncryptPayload(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockPrivateTransactionManagerMockRecorder) GetMandatory(arg0 interface{}) *gomock.Call
- func (mr *MockPrivateTransactionManagerMockRecorder) GetParticipants(arg0 interface{}) *gomock.Call
- func (mr *MockPrivateTransactionManagerMockRecorder) Groups() *gomock.Call
- func (mr *MockPrivateTransactionManagerMockRecorder) HasFeature(arg0 interface{}) *gomock.Call
- func (mr *MockPrivateTransactionManagerMockRecorder) IsSender(arg0 interface{}) *gomock.Call
- func (mr *MockPrivateTransactionManagerMockRecorder) Name() *gomock.Call
- func (mr *MockPrivateTransactionManagerMockRecorder) Receive(arg0 interface{}) *gomock.Call
- func (mr *MockPrivateTransactionManagerMockRecorder) ReceiveRaw(arg0 interface{}) *gomock.Call
- func (mr *MockPrivateTransactionManagerMockRecorder) Send(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockPrivateTransactionManagerMockRecorder) SendSignedTx(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockPrivateTransactionManagerMockRecorder) StoreRaw(arg0, arg1 interface{}) *gomock.Call
- type PrivateTransactionManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchPrivateTransaction ¶
func FetchPrivateTransaction(data []byte) (*types.Transaction, []string, *engine.ExtraMetadata, error)
Retrieve the private transaction that is associated with a privacy marker transaction
func FetchPrivateTransactionWithPTM ¶
func FetchPrivateTransactionWithPTM(data []byte, ptm PrivateTransactionManager) (*types.Transaction, []string, *engine.ExtraMetadata, error)
func GetLegacyEnvironmentConfig ¶
This loads any config specified via the legacy environment variable
func IsQuorumPrivacyEnabled ¶
func IsQuorumPrivacyEnabled() bool
Types ¶
type HasRPCClient ¶
type Identifiable ¶
type Identifiable interface { Name() string HasFeature(f engine.PrivateTransactionManagerFeature) bool }
type MockPrivateTransactionManager ¶
type MockPrivateTransactionManager struct {
// contains filtered or unexported fields
}
MockPrivateTransactionManager is a mock of PrivateTransactionManager interface.
func NewMockPrivateTransactionManager ¶
func NewMockPrivateTransactionManager(ctrl *gomock.Controller) *MockPrivateTransactionManager
NewMockPrivateTransactionManager creates a new mock instance.
func (*MockPrivateTransactionManager) DecryptPayload ¶
func (m *MockPrivateTransactionManager) DecryptPayload(arg0 common.DecryptRequest) ([]byte, *engine.ExtraMetadata, error)
DecryptPayload mocks base method.
func (*MockPrivateTransactionManager) EXPECT ¶
func (m *MockPrivateTransactionManager) EXPECT() *MockPrivateTransactionManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPrivateTransactionManager) EncryptPayload ¶
func (m *MockPrivateTransactionManager) EncryptPayload(arg0 []byte, arg1 string, arg2 []string, arg3 *engine.ExtraMetadata) ([]byte, error)
EncryptPayload mocks base method.
func (*MockPrivateTransactionManager) GetMandatory ¶
func (m *MockPrivateTransactionManager) GetMandatory(arg0 common.EncryptedPayloadHash) ([]string, error)
GetMandatory mocks base method.
func (*MockPrivateTransactionManager) GetParticipants ¶
func (m *MockPrivateTransactionManager) GetParticipants(arg0 common.EncryptedPayloadHash) ([]string, error)
GetParticipants mocks base method.
func (*MockPrivateTransactionManager) Groups ¶
func (m *MockPrivateTransactionManager) Groups() ([]engine.PrivacyGroup, error)
Groups mocks base method.
func (*MockPrivateTransactionManager) HasFeature ¶
func (m *MockPrivateTransactionManager) HasFeature(arg0 engine.PrivateTransactionManagerFeature) bool
HasFeature mocks base method.
func (*MockPrivateTransactionManager) IsSender ¶
func (m *MockPrivateTransactionManager) IsSender(arg0 common.EncryptedPayloadHash) (bool, error)
IsSender mocks base method.
func (*MockPrivateTransactionManager) Name ¶
func (m *MockPrivateTransactionManager) Name() string
Name mocks base method.
func (*MockPrivateTransactionManager) Receive ¶
func (m *MockPrivateTransactionManager) Receive(arg0 common.EncryptedPayloadHash) (string, []string, []byte, *engine.ExtraMetadata, error)
Receive mocks base method.
func (*MockPrivateTransactionManager) ReceiveRaw ¶
func (m *MockPrivateTransactionManager) ReceiveRaw(arg0 common.EncryptedPayloadHash) ([]byte, string, *engine.ExtraMetadata, error)
ReceiveRaw mocks base method.
func (*MockPrivateTransactionManager) Send ¶
func (m *MockPrivateTransactionManager) Send(arg0 []byte, arg1 string, arg2 []string, arg3 *engine.ExtraMetadata) (string, []string, common.EncryptedPayloadHash, error)
Send mocks base method.
func (*MockPrivateTransactionManager) SendSignedTx ¶
func (m *MockPrivateTransactionManager) SendSignedTx(arg0 common.EncryptedPayloadHash, arg1 []string, arg2 *engine.ExtraMetadata) (string, []string, []byte, error)
SendSignedTx mocks base method.
func (*MockPrivateTransactionManager) StoreRaw ¶
func (m *MockPrivateTransactionManager) StoreRaw(arg0 []byte, arg1 string) (common.EncryptedPayloadHash, error)
StoreRaw mocks base method.
type MockPrivateTransactionManagerMockRecorder ¶
type MockPrivateTransactionManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockPrivateTransactionManagerMockRecorder is the mock recorder for MockPrivateTransactionManager.
func (*MockPrivateTransactionManagerMockRecorder) DecryptPayload ¶
func (mr *MockPrivateTransactionManagerMockRecorder) DecryptPayload(arg0 interface{}) *gomock.Call
DecryptPayload indicates an expected call of DecryptPayload.
func (*MockPrivateTransactionManagerMockRecorder) EncryptPayload ¶
func (mr *MockPrivateTransactionManagerMockRecorder) EncryptPayload(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
EncryptPayload indicates an expected call of EncryptPayload.
func (*MockPrivateTransactionManagerMockRecorder) GetMandatory ¶
func (mr *MockPrivateTransactionManagerMockRecorder) GetMandatory(arg0 interface{}) *gomock.Call
GetMandatory indicates an expected call of GetMandatory.
func (*MockPrivateTransactionManagerMockRecorder) GetParticipants ¶
func (mr *MockPrivateTransactionManagerMockRecorder) GetParticipants(arg0 interface{}) *gomock.Call
GetParticipants indicates an expected call of GetParticipants.
func (*MockPrivateTransactionManagerMockRecorder) Groups ¶
func (mr *MockPrivateTransactionManagerMockRecorder) Groups() *gomock.Call
Groups indicates an expected call of Groups.
func (*MockPrivateTransactionManagerMockRecorder) HasFeature ¶
func (mr *MockPrivateTransactionManagerMockRecorder) HasFeature(arg0 interface{}) *gomock.Call
HasFeature indicates an expected call of HasFeature.
func (*MockPrivateTransactionManagerMockRecorder) IsSender ¶
func (mr *MockPrivateTransactionManagerMockRecorder) IsSender(arg0 interface{}) *gomock.Call
IsSender indicates an expected call of IsSender.
func (*MockPrivateTransactionManagerMockRecorder) Name ¶
func (mr *MockPrivateTransactionManagerMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockPrivateTransactionManagerMockRecorder) Receive ¶
func (mr *MockPrivateTransactionManagerMockRecorder) Receive(arg0 interface{}) *gomock.Call
Receive indicates an expected call of Receive.
func (*MockPrivateTransactionManagerMockRecorder) ReceiveRaw ¶
func (mr *MockPrivateTransactionManagerMockRecorder) ReceiveRaw(arg0 interface{}) *gomock.Call
ReceiveRaw indicates an expected call of ReceiveRaw.
func (*MockPrivateTransactionManagerMockRecorder) Send ¶
func (mr *MockPrivateTransactionManagerMockRecorder) Send(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
Send indicates an expected call of Send.
func (*MockPrivateTransactionManagerMockRecorder) SendSignedTx ¶
func (mr *MockPrivateTransactionManagerMockRecorder) SendSignedTx(arg0, arg1, arg2 interface{}) *gomock.Call
SendSignedTx indicates an expected call of SendSignedTx.
func (*MockPrivateTransactionManagerMockRecorder) StoreRaw ¶
func (mr *MockPrivateTransactionManagerMockRecorder) StoreRaw(arg0, arg1 interface{}) *gomock.Call
StoreRaw indicates an expected call of StoreRaw.
type PrivateTransactionManager ¶
type PrivateTransactionManager interface { Identifiable Send(data []byte, from string, to []string, extra *engine.ExtraMetadata) (string, []string, common.EncryptedPayloadHash, error) StoreRaw(data []byte, from string) (common.EncryptedPayloadHash, error) SendSignedTx(data common.EncryptedPayloadHash, to []string, extra *engine.ExtraMetadata) (string, []string, []byte, error) // Returns nil payload if not found Receive(data common.EncryptedPayloadHash) (string, []string, []byte, *engine.ExtraMetadata, error) // Returns nil payload if not found ReceiveRaw(data common.EncryptedPayloadHash) ([]byte, string, *engine.ExtraMetadata, error) IsSender(txHash common.EncryptedPayloadHash) (bool, error) GetParticipants(txHash common.EncryptedPayloadHash) ([]string, error) GetMandatory(txHash common.EncryptedPayloadHash) ([]string, error) EncryptPayload(data []byte, from string, to []string, extra *engine.ExtraMetadata) ([]byte, error) DecryptPayload(payload common.DecryptRequest) ([]byte, *engine.ExtraMetadata, error) Groups() ([]engine.PrivacyGroup, error) }
Interacting with Private Transaction Manager APIs
var ( // global variable to be accessed by other packages // singleton gateway to interact with private transaction manager P PrivateTransactionManager )
func NewPrivateTxManager ¶
func NewPrivateTxManager(cfg http2.Config) (PrivateTransactionManager, error)
func NewQLightTxManager ¶
func NewQLightTxManager() (PrivateTransactionManager, error)