private

package
v0.0.0-...-490d6b7 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Overview

Package private is a generated GoMock package.

Index

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 FromEnvironmentOrNil

func FromEnvironmentOrNil(name string) (http2.Config, error)

func GetLegacyEnvironmentConfig

func GetLegacyEnvironmentConfig() (http2.Config, error)

This loads any config specified via the legacy environment variable

func InitialiseConnection

func InitialiseConnection(cfg http2.Config) error

func IsQuorumPrivacyEnabled

func IsQuorumPrivacyEnabled() bool

Types

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

DecryptPayload mocks base method.

func (*MockPrivateTransactionManager) EXPECT

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

GetMandatory mocks base method.

func (*MockPrivateTransactionManager) GetParticipants

GetParticipants mocks base method.

func (*MockPrivateTransactionManager) Groups

Groups mocks base method.

func (*MockPrivateTransactionManager) HasFeature

HasFeature mocks base method.

func (*MockPrivateTransactionManager) IsSender

IsSender mocks base method.

func (*MockPrivateTransactionManager) Name

Name mocks base method.

func (*MockPrivateTransactionManager) Receive

Receive mocks base method.

func (*MockPrivateTransactionManager) ReceiveRaw

ReceiveRaw mocks base method.

func (*MockPrivateTransactionManager) Send

Send mocks base method.

func (*MockPrivateTransactionManager) SendSignedTx

SendSignedTx mocks base method.

func (*MockPrivateTransactionManager) StoreRaw

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

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

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)

Directories

Path Synopsis
Package mock_private is a generated GoMock package.
Package mock_private is a generated GoMock package.

Jump to

Keyboard shortcuts

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