Commit f5eb4ef4 authored by Sietse Ringers's avatar Sietse Ringers
Browse files

Remove descriptions

parent e7c3289a
......@@ -29,7 +29,6 @@ type Issuer struct {
ContactEMail string
URL string `xml:"baseURL"`
XMLVersion int `xml:"version,attr"`
identifier *IssuerIdentifier
}
// CredentialType is a description of a credential type, specifying (a.o.) its name, issuer, and attributes.
......@@ -44,7 +43,6 @@ type CredentialType struct {
Attributes []AttributeDescription `xml:"Attributes>Attribute"`
XMLVersion int `xml:"version,attr"`
XMLName xml.Name `xml:"IssueSpecification"`
identifier *CredentialTypeIdentifier
}
// AttributeDescription is a description of an attribute within a credential type.
......
package irmago
import (
"encoding/binary"
"math/big"
"testing"
"github.com/stretchr/testify/assert"
......@@ -23,3 +25,11 @@ func TestParseStore(t *testing.T) {
MetaStore.Credentials["irma-demo.RU.studentCard"].HRShortName,
"irma-demo.RU.studentCard has unexpected name")
}
func TestInts(t *testing.T) {
t.Log(big.NewInt(2900).Bytes())
bytes := make([]byte, 2)
binary.BigEndian.PutUint16(bytes, 2900)
t.Log(bytes)
t.Log(binary.BigEndian.Uint16(bytes))
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment