Documentation
¶
Index ¶
- func EpochIDHashBytes(epochID TypeEpochID) []byte
- func EpochIDHashPoint(epochID TypeEpochID) kyber.Point
- func EpochIDHashScalar(epochID TypeEpochID) kyber.Scalar
- func EpochIDHashString(epochID TypeEpochID) string
- func IDHashBytes(id TypeID) []byte
- func IDHashPoint(id TypeID) kyber.Point
- func IDHashScalar(id TypeID) kyber.Scalar
- func IDHashString(id TypeID) string
- type Auditor
- func (a *Auditor) AccumulateCommitments(orgID clolcorg.TypeID, txList []*transaction.LocalHidden) (kyber.Point, error)
- func (a *Auditor) CheckResultConsistency(res, B, txRes, txB kyber.Point) bool
- func (a *Auditor) ComputeA(orgEpochID clolcorg.TypeEpochID, orgChainTX *transaction.OrgPlain) (kyber.Point, error)
- func (a *Auditor) ComputeB(orgTXRandList, comTXRandList []kyber.Scalar) (kyber.Point, error)
- func (a *Auditor) ComputeC(res, A kyber.Point) kyber.Point
- func (a *Auditor) ComputeCETransactionID(orgID clolcorg.TypeID, counterPartyIDHash string) ([]byte, error)
- func (a *Auditor) ComputeD(pointA, pointB kyber.Point) kyber.Point
- func (a *Auditor) ConsistencyExaminationPartOne(orgID, counterPartyID clolcorg.TypeID, orgEpochID clolcorg.TypeEpochID, ...) (*transaction.AudPlain, error)
- func (a *Auditor) ConsistencyExaminationPartTwo(orgID, counterPartyID clolcorg.TypeID, audChainTX *transaction.AudOnChain, ...) (bool, error)
- func (a *Auditor) DecryptResAndB(orgIDHash string, tx *transaction.AudOnChain) (kyber.Point, kyber.Point, error)
- func (a *Auditor) EncryptConsistencyExamResult(orgID clolcorg.TypeID, counterPartyIDHash string, ...) (*transaction.AudPlain, error)
- func (a *Auditor) GetEpochTXRandomness(orgID1, orgID2 clolcorg.TypeID) []kyber.Scalar
- func (a *Auditor) SetEpochID(id []byte)
- func (a *Auditor) SetEpochOrgIDMap(idMap map[clolcorg.TypeID]clolcorg.TypeEpochID)
- func (a *Auditor) SetEpochSecretKey(orgSecretKeyMap map[string]crypto.TypePrivateKey)
- func (a *Auditor) SetEpochTXRandomness(txRandMap map[[2]string][]kyber.Scalar)
- type TypeEpochID
- type TypeID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EpochIDHashBytes ¶
func EpochIDHashBytes(epochID TypeEpochID) []byte
func EpochIDHashPoint ¶
func EpochIDHashPoint(epochID TypeEpochID) kyber.Point
func EpochIDHashScalar ¶
func EpochIDHashScalar(epochID TypeEpochID) kyber.Scalar
func EpochIDHashString ¶
func EpochIDHashString(epochID TypeEpochID) string
func IDHashBytes ¶
func IDHashPoint ¶
func IDHashPoint(id TypeID) kyber.Point
func IDHashScalar ¶
func IDHashScalar(id TypeID) kyber.Scalar
func IDHashString ¶
Types ¶
type Auditor ¶
type Auditor struct { ID TypeID AuditedOrgIDs []clolcorg.TypeID EpochID TypeEpochID // contains filtered or unexported fields }
func (*Auditor) AccumulateCommitments ¶
func (a *Auditor) AccumulateCommitments( orgID clolcorg.TypeID, txList []*transaction.LocalHidden, ) (kyber.Point, error)
func (*Auditor) CheckResultConsistency ¶
func (*Auditor) ComputeA ¶
func (a *Auditor) ComputeA(orgEpochID clolcorg.TypeEpochID, orgChainTX *transaction.OrgPlain) (kyber.Point, error)
func (*Auditor) ComputeCETransactionID ¶
func (*Auditor) ConsistencyExaminationPartOne ¶
func (a *Auditor) ConsistencyExaminationPartOne( orgID, counterPartyID clolcorg.TypeID, orgEpochID clolcorg.TypeEpochID, orgChainTX *transaction.OrgPlain, localChainTXList []*transaction.LocalHidden, orgTXRandList, comTXRandList []kyber.Scalar, publicKeyMap map[string]crypto.TypePublicKey, ) (*transaction.AudPlain, error)
func (*Auditor) ConsistencyExaminationPartTwo ¶
func (a *Auditor) ConsistencyExaminationPartTwo( orgID, counterPartyID clolcorg.TypeID, audChainTX *transaction.AudOnChain, pointAccResult, pointA kyber.Point, ) (bool, error)
func (*Auditor) DecryptResAndB ¶
func (a *Auditor) DecryptResAndB( orgIDHash string, tx *transaction.AudOnChain, ) (kyber.Point, kyber.Point, error)
func (*Auditor) EncryptConsistencyExamResult ¶
func (*Auditor) GetEpochTXRandomness ¶
func (*Auditor) SetEpochID ¶
func (*Auditor) SetEpochOrgIDMap ¶
func (a *Auditor) SetEpochOrgIDMap(idMap map[clolcorg.TypeID]clolcorg.TypeEpochID)
func (*Auditor) SetEpochSecretKey ¶
func (a *Auditor) SetEpochSecretKey(orgSecretKeyMap map[string]crypto.TypePrivateKey)
func (*Auditor) SetEpochTXRandomness ¶
type TypeEpochID ¶
type TypeEpochID []byte
Click to show internal directories.
Click to hide internal directories.