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
5d3a2644
Commit
5d3a2644
authored
Oct 05, 2017
by
Sietse Ringers
Browse files
Renaming
parent
45ffe476
Changes
3
Hide whitespace changes
Inline
Side-by-side
manager.go
View file @
5d3a2644
...
...
@@ -61,7 +61,7 @@ type IrmaSession interface {
SetNonce
(
*
big
.
Int
)
GetContext
()
*
big
.
Int
SetContext
(
*
big
.
Int
)
Dis
junctionList
()
AttributeDisjunctionList
To
Dis
close
()
AttributeDisjunctionList
DisclosureChoice
()
*
DisclosureChoice
SetDisclosureChoice
(
choice
*
DisclosureChoice
)
Distributed
(
store
*
ConfigurationStore
)
bool
...
...
requests.go
View file @
5d3a2644
...
...
@@ -177,8 +177,8 @@ func (ir *IssuanceRequest) SchemeManagers() []SchemeManagerIdentifier {
return
list
}
// Dis
junctionList
returns the attributes that must be disclosed in this issuance session.
func
(
ir
*
IssuanceRequest
)
Dis
junctionList
()
AttributeDisjunctionList
{
return
ir
.
Disclose
}
//
To
Dis
close
returns the attributes that must be disclosed in this issuance session.
func
(
ir
*
IssuanceRequest
)
To
Dis
close
()
AttributeDisjunctionList
{
return
ir
.
Disclose
}
// GetContext returns the context of this session.
func
(
ir
*
IssuanceRequest
)
GetContext
()
*
big
.
Int
{
return
ir
.
Context
}
...
...
@@ -213,8 +213,8 @@ func (dr *DisclosureRequest) SchemeManagers() []SchemeManagerIdentifier {
return
list
}
// Dis
junctionList
returns the attributes to be disclosed in this session.
func
(
dr
*
DisclosureRequest
)
Dis
junctionList
()
AttributeDisjunctionList
{
return
dr
.
Content
}
//
To
Dis
close
returns the attributes to be disclosed in this session.
func
(
dr
*
DisclosureRequest
)
To
Dis
close
()
AttributeDisjunctionList
{
return
dr
.
Content
}
// GetContext returns the context of this session.
func
(
dr
*
DisclosureRequest
)
GetContext
()
*
big
.
Int
{
return
dr
.
Context
}
...
...
@@ -228,18 +228,6 @@ func (dr *DisclosureRequest) GetNonce() *big.Int { return dr.Nonce }
// SetNonce sets the nonce of this session.
func
(
dr
*
DisclosureRequest
)
SetNonce
(
nonce
*
big
.
Int
)
{
dr
.
Nonce
=
nonce
}
// DisjunctionList returns the attributes with which the message must be signed.
func
(
sr
*
SignatureRequest
)
DisjunctionList
()
AttributeDisjunctionList
{
return
sr
.
Content
}
// GetContext returns the context of this session.
func
(
sr
*
SignatureRequest
)
GetContext
()
*
big
.
Int
{
return
sr
.
Context
}
// SetContext sets the context of this session.
func
(
sr
*
SessionRequest
)
SetContext
(
context
*
big
.
Int
)
{
sr
.
Context
=
context
}
// SetNonce sets the nonce of this session.
func
(
sr
*
SessionRequest
)
SetNonce
(
nonce
*
big
.
Int
)
{
sr
.
Nonce
=
nonce
}
// GetNonce returns the nonce of this signature session
// (with the message already hashed into it).
func
(
sr
*
SignatureRequest
)
GetNonce
()
*
big
.
Int
{
...
...
session.go
View file @
5d3a2644
...
...
@@ -163,7 +163,7 @@ func (session *session) start() {
}
}
missing
:=
session
.
credManager
.
CheckSatisfiability
(
session
.
irmaSession
.
Dis
junctionList
())
missing
:=
session
.
credManager
.
CheckSatisfiability
(
session
.
irmaSession
.
To
Dis
close
())
if
len
(
missing
)
>
0
{
session
.
Handler
.
UnsatisfiableRequest
(
session
.
Action
,
missing
)
// TODO: session.transport.Delete() on dialog cancel
...
...
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