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: 0

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