token

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2019 License: AGPL-3.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package token defines Nym token structure and associated methods.

Index

Constants

This section is empty.

Variables

View Source
var (
	AllowedValues = []int64{1, 2, 5, 10, 20, 50, 100}
)

nolint: gochecknoglobals

Functions

func ValidateValue

func ValidateValue(val int64) bool

Types

type Credential

type Credential *coconut.Signature

type Token

type Token struct {
	// contains filtered or unexported fields
}

func New

func New(s, k *Curve.BIG, val int64) (*Token, error)

temp, havent decided on where attrs will be generated, but want token instance for test

func (*Token) GetPublicAndPrivateSlices

func (t *Token) GetPublicAndPrivateSlices() ([]*Curve.BIG, []*Curve.BIG)

func (*Token) LongtermSecret

func (t *Token) LongtermSecret() *Curve.BIG

func (*Token) PrepareBlindSign

func (t *Token) PrepareBlindSign(params *coconut.Params, egPub *elgamal.PublicKey) (*coconut.Lambda, error)

func (*Token) SequenceNum

func (t *Token) SequenceNum() *Curve.BIG

func (*Token) Value

func (t *Token) Value() int64

Jump to

Keyboard shortcuts

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