organization

package
v0.0.0-...-dc04a49 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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 IDHashBytes(id TypeID) []byte

func IDHashKey

func IDHashKey(orgIDHash1, orgIDHash2 string) [2]string

func IDHashPoint

func IDHashPoint(id TypeID) kyber.Point

func IDHashScalar

func IDHashScalar(id TypeID) kyber.Scalar

func IDHashString

func IDHashString(id TypeID) string

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

type TypeID

type TypeID string

Jump to

Keyboard shortcuts

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