Versions in this module Expand all Collapse all v0 v0.2.1 Oct 29, 2020 v0.2.0 Jul 21, 2020 Changes in this version + const BatchProofPVector + const BatchProofProtocol + const BatchProofQVector + const BatchProofX + const BatchProofY + const DLEQA + const DLEQB + const DLEQP + const DLEQQ + const DLEQX + const DLEQY + func GenerateBlindedTokenBatch(num int) (tokens []*Token, blindedTokens []BlindedToken) + func UnblindSignedTokenBatch(tokens []*Token, blindedTokens []BlindedToken, signedTokens []SignedToken, ...) bool + func VerifyDiscreteLogEquivalenceProof(dleq DLEQProof, X *ristretto.Element, Y *ristretto.Element, ...) bool + type BlindedToken struct + P *ristretto.Element + type DLEQProof struct + C *ristretto.Scalar + S *ristretto.Scalar + func DiscreteLogEquivalenceProof(k *ristretto.Scalar, X *ristretto.Element, Y *ristretto.Element, ...) DLEQProof + type SignedBatchWithProof struct + Proof DLEQProof + SignedTokens []SignedToken + type SignedToken struct + Q *ristretto.Element + type SpentToken struct + MAC []byte + T []byte + type Token struct + W *ristretto.Element + func (t *Token) GenBlindedToken() BlindedToken + func (t *Token) SpendToken(data []byte) SpentToken + func (t Token) GetT() []byte + type TokenPaymentHandler interface + MakePayment func() + NextToken func(data []byte, hostname string) (SpentToken, error) + type TokenServer struct + Y *ristretto.Element + func NewTokenServer() *TokenServer + func NewTokenServerFromStore(persistenceService persistence.Service) *TokenServer + func (ts *TokenServer) SignBlindedToken(bt BlindedToken) SignedToken + func (ts *TokenServer) SignBlindedTokenBatch(blindedTokens []BlindedToken, transcript *core.Transcript) SignedBatchWithProof + func (ts *TokenServer) SignBlindedTokenBatchWithConstraint(blindedTokens []BlindedToken, constraintToken []byte, ...) SignedBatchWithProof + func (ts *TokenServer) SpendToken(token SpentToken, data []byte) error