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 IDHashKey(orgIDHash1, orgIDHash2 string) [2]string
- func IDHashPoint(id TypeID) kyber.Point
- func IDHashScalar(id TypeID) kyber.Scalar
- func IDHashString(id TypeID) string
- type Organization
- func (c *Organization) Accumulate(counterParty TypeID, commitment kyber.Point)
- func (c *Organization) ComposeTXOrgChain(counterParty TypeID) (*transaction.OrgPlain, error)
- func (c *Organization) RecordTransaction(tx *transaction.LocalPlain) error
- func (c *Organization) SetEpochID(randID []byte)
- func (c *Organization) SubmitTXLocalChain(tx *transaction.LocalHidden) error
- 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 Organization ¶
type Organization struct { ID TypeID IDHash string EpochID TypeEpochID // contains filtered or unexported fields }
func New ¶
func New(id string) *Organization
func (*Organization) Accumulate ¶
func (c *Organization) Accumulate(counterParty TypeID, commitment kyber.Point)
func (*Organization) ComposeTXOrgChain ¶
func (c *Organization) ComposeTXOrgChain(counterParty TypeID) (*transaction.OrgPlain, error)
func (*Organization) RecordTransaction ¶
func (c *Organization) RecordTransaction(tx *transaction.LocalPlain) error
func (*Organization) SetEpochID ¶
func (c *Organization) SetEpochID(randID []byte)
func (*Organization) SubmitTXLocalChain ¶
func (c *Organization) SubmitTXLocalChain(tx *transaction.LocalHidden) error
type TypeEpochID ¶
type TypeEpochID []byte
Click to show internal directories.
Click to hide internal directories.