Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPairLocalPlain ¶
func NewPairLocalPlain( fromID, toID string, amount float64, timestamp int64, ) (*LocalPlain, *LocalPlain)
Types ¶
type AudOnChain ¶
type AudOnChain struct { ID string CipherRes string `json:"cipher_res"` CipherB string `json:"cipher_b"` CipherC string `json:"cipher_c"` CipherD string `json:"cipher_d"` }
func NewAudOnChain ¶
func NewAudOnChain(id, cipherRes, cipherB, cipherC, cipherD string) *AudOnChain
func (*AudOnChain) ToPlain ¶
func (a *AudOnChain) ToPlain() (*AudPlain, error)
type AudPlain ¶
func NewAudPlain ¶
func (*AudPlain) ToOnChain ¶
func (a *AudPlain) ToOnChain() *AudOnChain
type LocalHidden ¶
func NewLocalHidden ¶
func NewLocalHidden(counterParty, commitment []byte, timestamp int64) *LocalHidden
func (*LocalHidden) ToOnChain ¶
func (h *LocalHidden) ToOnChain() *LocalOnChain
type LocalOnChain ¶
type LocalOnChain struct { CounterParty string `json:"counter_party"` Commitment string `json:"commitment"` Timestamp string `json:"timestamp"` }
func NewLocalOnChain ¶
func NewLocalOnChain(counterParty, commitment, timestamp string) *LocalOnChain
func (*LocalOnChain) ToHidden ¶
func (l *LocalOnChain) ToHidden() (*LocalHidden, error)
type LocalPlain ¶
func NewLocalPlain ¶
func NewLocalPlain(counterParty string, amount float64, timestamp int64) *LocalPlain
func (*LocalPlain) Hide ¶
func (l *LocalPlain) Hide() (hiddenTX *LocalHidden, commitment kyber.Point, randScalar kyber.Scalar, err error)
type OrgOnChain ¶
type OrgOnChain struct {
Accumulator string `json:"accumulator"`
}
func NewOrgOnChain ¶
func NewOrgOnChain(accumulator string) *OrgOnChain
func (*OrgOnChain) ToPlain ¶
func (o *OrgOnChain) ToPlain() (*OrgPlain, error)
Click to show internal directories.
Click to hide internal directories.