Documentation ¶
Index ¶
- Variables
- func CalculateTimeBasedChallenge(unixTimeSeconds int64) *big.Int
- func ComputeAttributeInts(attributes [][]byte) ([]*big.Int, error)
- func DebugSerializableStruct(s interface{})
- func DecodeAttributeInt(a *big.Int) []byte
- func DecodeMetadataAttribute(metadataAttribute *big.Int) (credentialVersion int, issuerPkId string, attributeTypes []string, err error)
- func GenerateNonce() *big.Int
- func RandomBigInt(numBits uint) *big.Int
- type CreateCredentialMessage
- type CredentialMetadataSerialization
- type FindIssuerPkFunc
- type PrepareIssueMessage
- type ProofSerializationV2
Constants ¶
This section is empty.
Variables ¶
View Source
var AttributeTypesV2 = []string{
"isSpecimen",
"isPaperProof",
"validFrom",
"validForHours",
"firstNameInitial",
"lastNameInitial",
"birthDay",
"birthMonth",
}
View Source
var AttributeTypesV3 = []string{
"isSpecimen",
"isPaperProof",
"validFrom",
"validForHours",
"firstNameInitial",
"lastNameInitial",
"birthDay",
"birthMonth",
"category",
}
View Source
var BigOne = big.NewInt(1)
View Source
var CredentialVersion = 2
View Source
var CredentialVersionBytes = []byte{byte(CredentialVersion)}
View Source
var GabiSystemParameters = gabi.DefaultSystemParameters[2048]
View Source
var ProofVersionByte byte = '2'
Functions ¶
func DebugSerializableStruct ¶
func DebugSerializableStruct(s interface{})
func DecodeAttributeInt ¶
func DecodeMetadataAttribute ¶
func GenerateNonce ¶
func RandomBigInt ¶
RandomBigInt returns a random big integer value in the range [0,(2^numBits)-1], inclusive.
Types ¶
type CreateCredentialMessage ¶
type CreateCredentialMessage struct { IssueSignatureMessage *gabi.IssueSignatureMessage `json:"issueSignatureMessage"` Attributes [][]byte `json:"attributes"` }
type FindIssuerPkFunc ¶ added in v0.3.0
type PrepareIssueMessage ¶
Click to show internal directories.
Click to hide internal directories.