api.go 711 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package irmaserver

import (
	"github.com/Sirupsen/logrus"
	"github.com/mhe/gabi"
	"github.com/privacybydesign/irmago"
)

type Configuration struct {
	IrmaConfigurationPath string

	PrivateKeys       map[irma.IssuerIdentifier]*gabi.PrivateKey
	IrmaConfiguration *irma.Configuration
	Logger            *logrus.Logger
}

type SessionResult struct {
Sietse Ringers's avatar
Sietse Ringers committed
18
19
20
21
22
23
	Token       string
	Status      Status
	ProofStatus irma.ProofStatus
	Disclosed   []*irma.DisclosedAttribute
	Signature   *irma.SignedMessage
	Err         *irma.RemoteError
24
25
26
27
28
29
30
31
32
33
}

type Status string

const (
	StatusInitialized Status = "INITIALIZED"
	StatusConnected   Status = "CONNECTED"
	StatusCancelled   Status = "CANCELLED"
	StatusDone        Status = "DONE"
)