Versions in this module Expand all Collapse all v0 v0.7.0 Dec 4, 2025 Changes in this version type Issuer + func NewIssuer(tokenType token2.Type, signer common.SigningIdentity, pp *v1.PublicParams) *Issuer v0.5.0 Jul 17, 2025 Changes in this version + const ProtocolV1 + type Action struct + Inputs []*ActionInput + Issuer driver.Identity + Metadata map[string][]byte + Outputs []*token.Token + Proof []byte + func NewAction(issuer []byte, coms []*math.G1, owners [][]byte, proof []byte) (*Action, error) + func (i *Action) Deserialize(raw []byte) error + func (i *Action) ExtraSigners() []driver.Identity + func (i *Action) GetCommitments() ([]*math.G1, error) + func (i *Action) GetInputs() []*token2.ID + func (i *Action) GetIssuer() []byte + func (i *Action) GetMetadata() map[string][]byte + func (i *Action) GetOutputs() []driver.Output + func (i *Action) GetProof() []byte + func (i *Action) GetSerialNumbers() []string + func (i *Action) GetSerializedInputs() ([][]byte, error) + func (i *Action) GetSerializedOutputs() ([][]byte, error) + func (i *Action) IsAnonymous() bool + func (i *Action) IsGraphHiding() bool + func (i *Action) NumInputs() int + func (i *Action) NumOutputs() int + func (i *Action) Serialize() ([]byte, error) + func (i *Action) Validate() error + type ActionInput struct + ID token2.ID + Token []byte + func (i *ActionInput) FromProtos(p *actions.IssueActionInput) error + func (i *ActionInput) ToProtos() (*actions.IssueActionInput, error) + type Issuer struct + PublicParams *v1.PublicParams + Signer SigningIdentity + Type token2.Type + func (i *Issuer) GenerateZKIssue(values []uint64, owners [][]byte) (*Action, []*token.Metadata, error) + func (i *Issuer) New(ttype token2.Type, signer common.SigningIdentity, pp *v1.PublicParams) + func (i *Issuer) SignTokenActions(raw []byte) ([]byte, error) + type Proof struct + RangeCorrectness *rp.RangeCorrectness + SameType *SameType + func (p *Proof) Deserialize(bytes []byte) error + func (p *Proof) Serialize() ([]byte, error) + type Prover struct + RangeCorrectness *rp.RangeCorrectnessProver + SameType *SameTypeProver + func NewProver(tw []*token.Metadata, tokens []*math.G1, pp *v1.PublicParams) (*Prover, error) + func (p *Prover) Prove() ([]byte, error) + type SameType struct + BlindingFactor *math.Zr + Challenge *math.Zr + CommitmentToType *math.G1 + Type *math.Zr + func (stp *SameType) Deserialize(bytes []byte) error + func (stp *SameType) Serialize() ([]byte, error) + type SameTypeProver struct + CommitmentToType *math.G1 + Curve *math.Curve + PedParams []*math.G1 + func NewSameTypeProver(ttype token2.Type, bf *math.Zr, com *math.G1, pp []*math.G1, c *math.Curve) *SameTypeProver + func (p *SameTypeProver) Prove() (*SameType, error) + type SameTypeRandomness struct + type SameTypeVerifier struct + Curve *math.Curve + PedParams []*math.G1 + Tokens []*math.G1 + func NewSameTypeVerifier(tokens []*math.G1, pp []*math.G1, c *math.Curve) *SameTypeVerifier + func (v *SameTypeVerifier) Verify(proof *SameType) error + type SigningIdentity interface + type Verifier struct + RangeCorrectness *rp.RangeCorrectnessVerifier + SameType *SameTypeVerifier + func NewVerifier(tokens []*math.G1, pp *v1.PublicParams) *Verifier + func (v *Verifier) Verify(proof []byte) error