Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IRMA
Github mirrors
irmago
Commits
4b7eda2a
Commit
4b7eda2a
authored
Feb 15, 2018
by
Sietse Ringers
Browse files
Commenting
parent
70338e84
Changes
2
Hide whitespace changes
Inline
Side-by-side
irmaclient/client.go
View file @
4b7eda2a
...
...
@@ -17,6 +17,14 @@ import (
// This file contains most methods of the Client (c.f. session.go
// and updates.go).
//
// Clients are the main entry point into this package for the user of this package.
// The Client struct:
// - (De)serializes credentials and keyshare server information
// from storage, as well as logs of earlier IRMA sessions
// - it provides access to the attributes and all related information of its credentials,
// - it is the starting point for new IRMA sessions;
// - and it computes some of the messages in the client side of the IRMA protocol.
//
// The storage of credentials is split up in several parts:
//
// - The CL-signature of each credential is stored separately, so that we can
...
...
@@ -30,11 +38,6 @@ import (
// across all credentials, is stored only once in a separate file (storing this
// in multiple places would be bad).
// Client (de)serializes credentials and keyshare server information
// from storage; as well as logs of earlier IRMA sessions; it provides access
// to the attributes and all related information of its credentials;
// it is the starting point for new IRMA sessions; and it computes some
// of the messages in the client side of the IRMA protocol.
type
Client
struct
{
// Stuff we manage on disk
secretkey
*
secretKey
...
...
irmaclient/session.go
View file @
4b7eda2a
...
...
@@ -14,8 +14,9 @@ import (
"github.com/privacybydesign/irmago"
)
// This file contains the client side of the IRMA protocol, as well as the Handler interface
// which is used to communicate session info with the user.
// This file contains the logic and state of performing IRMA sessions, communicates
// with IRMA API servers, and uses the calling Client to construct messages and replies
// in the IRMA protocol.
// PermissionHandler is a callback for providing permission for an IRMA session
// and specifying the attributes to be disclosed.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment