engine

package
v0.0.0-...-8bbb73d Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PrivacyGroupResident = "RESIDENT"
	PrivacyGroupLegacy   = "LEGACY"
	PrivacyGroupPantheon = "PANTHEON"
)

Variables

View Source
var (
	ErrPrivateTxManagerNotinUse                          = errors.New("private transaction manager is not in use")
	ErrPrivateTxManagerNotReady                          = errors.New("private transaction manager is not ready")
	ErrPrivateTxManagerNotSupported                      = errors.New("private transaction manager does not support this operation")
	ErrPrivateTxManagerDoesNotSupportPrivacyEnhancements = errors.New("private transaction manager does not support privacy enhancements")
	ErrPrivateTxManagerDoesNotSupportMandatoryRecipients = errors.New("private transaction manager does not support mandatory recipients")
)

Functions

This section is empty.

Types

type Client

type Client struct {
	HttpClient *http.Client
	BaseURL    string
}

func (*Client) FullPath

func (c *Client) FullPath(path string) string

func (*Client) Get

func (c *Client) Get(path string) (*http.Response, error)

type ExtraMetaDataRLP

type ExtraMetaDataRLP ExtraMetadata

type ExtraMetadata

type ExtraMetadata struct {
	// Hashes of affected Contracts
	ACHashes common.EncryptedPayloadHashes
	// Root Hash of a Merkle Trie containing all affected contract account in state objects
	ACMerkleRoot common.Hash
	// Privacy flag for contract: standardPrivate, partyProtection, psv
	PrivacyFlag PrivacyFlagType
	// Contract participants that are managed by the corresponding Tessera.
	// Being used in Multi Tenancy
	ManagedParties []string
	// The sender of the transaction
	Sender string
	// Recipients that are mandated to be included
	MandatoryRecipients []string
}

Additional information for the private transaction that Private Transaction Manager carries

func (*ExtraMetadata) DecodeRLP

func (emd *ExtraMetadata) DecodeRLP(stream *rlp.Stream) error

type FeatureSet

type FeatureSet struct {
	// contains filtered or unexported fields
}

func NewFeatureSet

func NewFeatureSet(features ...PrivateTransactionManagerFeature) *FeatureSet

func (*FeatureSet) HasFeature

func (p *FeatureSet) HasFeature(feature PrivateTransactionManagerFeature) bool

type PrivacyFlagType

type PrivacyFlagType uint64
const (
	PrivacyFlagStandardPrivate PrivacyFlagType = iota
	PrivacyFlagPartyProtection
	PrivacyFlagMandatoryRecipients
	PrivacyFlagStateValidation
)

func (PrivacyFlagType) Has

func (f PrivacyFlagType) Has(other PrivacyFlagType) bool

func (PrivacyFlagType) HasAll

func (f PrivacyFlagType) HasAll(others ...PrivacyFlagType) bool

func (PrivacyFlagType) IsNotStandardPrivate

func (f PrivacyFlagType) IsNotStandardPrivate() bool

func (PrivacyFlagType) IsStandardPrivate

func (f PrivacyFlagType) IsStandardPrivate() bool

func (PrivacyFlagType) Validate

func (f PrivacyFlagType) Validate() error

type PrivacyGroup

type PrivacyGroup struct {
	Type           string   `json:"type"`
	Name           string   `json:"name"`
	PrivacyGroupId string   `json:"privacyGroupId"`
	Description    string   `json:"description"`
	From           string   `json:"from"`
	Members        []string `json:"members"`
}

type QuorumPayloadExtra

type QuorumPayloadExtra struct {
	Payload       string
	ExtraMetaData *ExtraMetadata
	IsSender      bool
}

Directories

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

Jump to

Keyboard shortcuts

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