Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AudOnChain ¶
func NewAudOnChain ¶
func NewAudOnChain(commitment, hash string) *AudOnChain
func (*AudOnChain) ToPlain ¶
func (a *AudOnChain) ToPlain() (*AudPlain, error)
type AudPlain ¶
func NewAudPlain ¶
func NewAudPlainFromPoint ¶
func (*AudPlain) ToOnChain ¶
func (a *AudPlain) ToOnChain() *AudOnChain
type LocalCommitmentOnChain ¶
type LocalCommitmentOnChain struct {
Commitment string `json:"commitment"`
}
func NewLocalCommitmentOnChain ¶
func NewLocalCommitmentOnChain(commitment string) *LocalCommitmentOnChain
func (*LocalCommitmentOnChain) KeyVal ¶
func (l *LocalCommitmentOnChain) KeyVal() (string, []byte, error)
func (*LocalCommitmentOnChain) ToPlain ¶
func (l *LocalCommitmentOnChain) ToPlain() (*LocalCommitmentPlain, error)
type LocalCommitmentPlain ¶
type LocalCommitmentPlain struct {
Commitment []byte
}
func NewLocalCommitmentPlain ¶
func NewLocalCommitmentPlain(commitment []byte) *LocalCommitmentPlain
func (*LocalCommitmentPlain) Serialize ¶
func (l *LocalCommitmentPlain) Serialize() ([]byte, error)
func (*LocalCommitmentPlain) ToOnChain ¶
func (l *LocalCommitmentPlain) ToOnChain() *LocalCommitmentOnChain
type LocalOnChain ¶
type LocalOnChain struct { Commitment string `json:"commitment"` MerkleRoot string `json:"merkle_root"` MerkleProof string `json:"merkle_proof"` }
func NewLocalOnChain ¶
func NewLocalOnChain(commitment, merkleRoot, merkleProof string) *LocalOnChain
func (*LocalOnChain) ToPlain ¶
func (l *LocalOnChain) ToPlain() (*LocalPlain, error)
type LocalPlain ¶
func NewLocalPlain ¶
func NewLocalPlain(commitment, merkleRoot, merkleProof []byte) *LocalPlain
func NewLocalPlainFromProof ¶
func NewLocalPlainFromProof(commitment, merkleRoot []byte, merkleProof *mt.Proof) (*LocalPlain, error)
func (*LocalPlain) Serialize ¶
func (l *LocalPlain) Serialize() ([]byte, error)
func (*LocalPlain) ToOnChain ¶
func (l *LocalPlain) ToOnChain() *LocalOnChain
type OrgOnChain ¶
type OrgOnChain struct {
MerkleRoot string `json:"merkle_root"`
}
func NewOrgOnChain ¶
func NewOrgOnChain(merkleRoot string) *OrgOnChain
func (*OrgOnChain) ToPlain ¶
func (o *OrgOnChain) ToPlain() (*OrgPlain, error)
type OrgPlain ¶
type OrgPlain struct {
MerkleRoot []byte
}
func NewOrgPlain ¶
func (*OrgPlain) ToOnChain ¶
func (o *OrgPlain) ToOnChain() *OrgOnChain
Click to show internal directories.
Click to hide internal directories.