token

package
Version: v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 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

This section is empty.

Functions

func ValidateValue

func ValidateValue(val int64) bool

Types

type Credential

type Credential *coconut.Signature

type PrivateKey

type PrivateKey *Curve.BIG

should be associated with given client/user rather than token if I understand it correctly

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) PrepareBlindSign

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

func (*Token) PrivateKey

func (t *Token) PrivateKey() PrivateKey

func (*Token) SequenceNum

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

func (*Token) Value

func (t *Token) Value() int64

Source Files

Jump to

Keyboard shortcuts

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