Documentation ¶
Index ¶
- Variables
- type DBUpgradePrivateTransactionManager
- type PrivateTransactionManager
- func (ptm *PrivateTransactionManager) DecryptPayload(payload common.DecryptRequest) ([]byte, *engine.ExtraMetadata, error)
- func (ptm *PrivateTransactionManager) EncryptPayload(data []byte, from string, to []string, extra *engine.ExtraMetadata) ([]byte, error)
- func (ptm *PrivateTransactionManager) GetMandatory(txHash common.EncryptedPayloadHash) ([]string, error)
- func (ptm *PrivateTransactionManager) GetParticipants(txHash common.EncryptedPayloadHash) ([]string, error)
- func (ptm *PrivateTransactionManager) Groups() ([]engine.PrivacyGroup, error)
- func (ptm *PrivateTransactionManager) HasFeature(f engine.PrivateTransactionManagerFeature) bool
- func (ptm *PrivateTransactionManager) IsSender(txHash common.EncryptedPayloadHash) (bool, error)
- func (ptm *PrivateTransactionManager) Name() string
- func (ptm *PrivateTransactionManager) Receive(data common.EncryptedPayloadHash) (string, []string, []byte, *engine.ExtraMetadata, error)
- func (ptm *PrivateTransactionManager) ReceiveRaw(data common.EncryptedPayloadHash) ([]byte, string, *engine.ExtraMetadata, error)
- func (ptm *PrivateTransactionManager) Send(data []byte, from string, to []string, extra *engine.ExtraMetadata) (string, []string, common.EncryptedPayloadHash, error)
- func (ptm *PrivateTransactionManager) SendSignedTx(data common.EncryptedPayloadHash, to []string, extra *engine.ExtraMetadata) (string, []string, []byte, error)
- func (ptm *PrivateTransactionManager) StoreRaw(data []byte, from string) (common.EncryptedPayloadHash, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrPrivateTxManagerNotInUse = errors.New("private transaction manager is not in use")
Functions ¶
This section is empty.
Types ¶
type DBUpgradePrivateTransactionManager ¶
type DBUpgradePrivateTransactionManager struct {
PrivateTransactionManager
}
DBUpgradePrivateTransactionManager returns an error for all communication functions, while reporting it has the MultiplePrivateStates feature
func (*DBUpgradePrivateTransactionManager) Groups ¶
func (ptm *DBUpgradePrivateTransactionManager) Groups() ([]engine.PrivacyGroup, error)
func (*DBUpgradePrivateTransactionManager) HasFeature ¶
func (ptm *DBUpgradePrivateTransactionManager) HasFeature(f engine.PrivateTransactionManagerFeature) bool
func (*DBUpgradePrivateTransactionManager) Name ¶
func (ptm *DBUpgradePrivateTransactionManager) Name() string
type PrivateTransactionManager ¶
type PrivateTransactionManager struct{}
NotInUsePrivateTxManager returns an error for all communication functions, stating that no private transaction manager is being used by the node
func (*PrivateTransactionManager) DecryptPayload ¶
func (ptm *PrivateTransactionManager) DecryptPayload(payload common.DecryptRequest) ([]byte, *engine.ExtraMetadata, error)
func (*PrivateTransactionManager) EncryptPayload ¶
func (ptm *PrivateTransactionManager) EncryptPayload(data []byte, from string, to []string, extra *engine.ExtraMetadata) ([]byte, error)
func (*PrivateTransactionManager) GetMandatory ¶
func (ptm *PrivateTransactionManager) GetMandatory(txHash common.EncryptedPayloadHash) ([]string, error)
func (*PrivateTransactionManager) GetParticipants ¶
func (ptm *PrivateTransactionManager) GetParticipants(txHash common.EncryptedPayloadHash) ([]string, error)
func (*PrivateTransactionManager) Groups ¶
func (ptm *PrivateTransactionManager) Groups() ([]engine.PrivacyGroup, error)
func (*PrivateTransactionManager) HasFeature ¶
func (ptm *PrivateTransactionManager) HasFeature(f engine.PrivateTransactionManagerFeature) bool
func (*PrivateTransactionManager) IsSender ¶
func (ptm *PrivateTransactionManager) IsSender(txHash common.EncryptedPayloadHash) (bool, error)
func (*PrivateTransactionManager) Name ¶
func (ptm *PrivateTransactionManager) Name() string
func (*PrivateTransactionManager) Receive ¶
func (ptm *PrivateTransactionManager) Receive(data common.EncryptedPayloadHash) (string, []string, []byte, *engine.ExtraMetadata, error)
func (*PrivateTransactionManager) ReceiveRaw ¶
func (ptm *PrivateTransactionManager) ReceiveRaw(data common.EncryptedPayloadHash) ([]byte, string, *engine.ExtraMetadata, error)
func (*PrivateTransactionManager) Send ¶
func (ptm *PrivateTransactionManager) Send(data []byte, from string, to []string, extra *engine.ExtraMetadata) (string, []string, common.EncryptedPayloadHash, error)
func (*PrivateTransactionManager) SendSignedTx ¶
func (ptm *PrivateTransactionManager) SendSignedTx(data common.EncryptedPayloadHash, to []string, extra *engine.ExtraMetadata) (string, []string, []byte, error)
func (*PrivateTransactionManager) StoreRaw ¶
func (ptm *PrivateTransactionManager) StoreRaw(data []byte, from string) (common.EncryptedPayloadHash, error)
Click to show internal directories.
Click to hide internal directories.