common

package
v0.0.0-...-0cb0544 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: EUPL-1.2 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AttributeTypes = []string{"FHIRL0", "sha256 of FHIR of FHIR Level0", "FHIRL1", "sha256 of FHIR of FHIR Level1", "FHIRL2", "sha256 of FHIR Level2"}
View Source
var BigOne = big.NewInt(1)
View Source
var GabiSystemParameters = gabi.DefaultSystemParameters[2048]

Functions

func CalculateTimeBasedChallenge

func CalculateTimeBasedChallenge(unixTimeSeconds int64) *big.Int

func ComputeAttributes

func ComputeAttributes(attributeValues [][]byte) ([]*big.Int, error)

func DebugSerializableStruct

func DebugSerializableStruct(s interface{})

func GenerateNonce

func GenerateNonce() *big.Int

func RandomBigInt

func RandomBigInt(numBits uint) *big.Int

RandomBigInt returns a random big integer value in the range [0,(2^numBits)-1], inclusive.

Types

type ProofSerialization

type ProofSerialization struct {
	UnixTimeSeconds   int64
	DisclosureChoices []bool
	C                 *gobig.Int
	A                 *gobig.Int
	EResponse         *gobig.Int
	VResponse         *gobig.Int
	AResponses        []*gobig.Int
	ADisclosed        []*gobig.Int
}

Jump to

Keyboard shortcuts

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