api.go 681 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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 {
	Token     string
	Status    irma.ProofStatus
	Disclosed []*irma.DisclosedAttribute
	Signature *irma.SignedMessage
	Err       *irma.RemoteError
}

type Status string

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