Documentation ¶
Index ¶
Constants ¶
This section is empty.
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") )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Socket string `toml:"socket"` WorkDir string `toml:"workdir"` // Deprecated SocketPath string `toml:"socketPath"` }
func LoadConfig ¶
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 }
Additional information for the private transaction that Private Transaction Manager carries
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 // 0 PrivacyFlagPartyProtection PrivacyFlagType = 1 << PrivacyFlagType(iota-1) // 1 PrivacyFlagStateValidation = iota | PrivacyFlagPartyProtection // 3 which includes PrivacyFlagPartyProtection )
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 PrivateTransactionManagerFeature ¶
type PrivateTransactionManagerFeature uint64
const ( None PrivateTransactionManagerFeature = iota // 0 PrivacyEnhancements PrivateTransactionManagerFeature = 1 << PrivateTransactionManagerFeature(iota-1) // 1 )
Click to show internal directories.
Click to hide internal directories.