Skip to content

Commit 7e31e91

Browse files
author
Manu Drijvers
committed
[FAB-1850] Fixes inconsistency in type attribute proof
Fixes inconsistency between type of GetAttributeProof ([]byte) and VerifyAttributes ([][]byte) Change-Id: I6b51a15a671092a5fba3995f6a8c5266b776a316 Signed-off-by: Manu Drijvers <[email protected]> Signed-off-by: Maria Dubovitskaya <[email protected]>
1 parent cb39a14 commit 7e31e91

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

common/cauthdsl/cauthdsl.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ func (id *mockIdentity) VerifyOpts(msg []byte, sig []byte, opts msp.SignatureOpt
136136
return nil
137137
}
138138

139-
func (id *mockIdentity) VerifyAttributes(proof [][]byte, spec *msp.AttributeProofSpec) error {
139+
func (id *mockIdentity) VerifyAttributes(proof []byte, spec *msp.AttributeProofSpec) error {
140140
return nil
141141
}
142142

msp/identities.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func (id *identity) VerifyOpts(msg []byte, sig []byte, opts SignatureOpts) error
109109
return nil
110110
}
111111

112-
func (id *identity) VerifyAttributes(proof [][]byte, spec *AttributeProofSpec) error {
112+
func (id *identity) VerifyAttributes(proof []byte, spec *AttributeProofSpec) error {
113113
// TODO
114114
return nil
115115
}

msp/msp.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ type Identity interface {
139139
// VerifyOpts a signature over some message using this identity as reference
140140
VerifyOpts(msg []byte, sig []byte, opts SignatureOpts) error
141141

142-
// VerifyAttributes verifies attributes given proofs
143-
VerifyAttributes(proof [][]byte, spec *AttributeProofSpec) error
142+
// VerifyAttributes verifies attributes given a proof
143+
VerifyAttributes(proof []byte, spec *AttributeProofSpec) error
144144

145145
// Serialize converts an identity to bytes
146146
Serialize() ([]byte, error)
@@ -167,7 +167,7 @@ type SigningIdentity interface {
167167
// SignOpts the message with options
168168
SignOpts(msg []byte, opts SignatureOpts) ([]byte, error)
169169

170-
// GetAttributeProof creates a proof for an attribute
170+
// GetAttributeProof creates a proof for a set of attributes
171171
GetAttributeProof(spec *AttributeProofSpec) (proof []byte, err error)
172172

173173
// GetPublicVersion returns the public parts of this identity

msp/noopmsp.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func (id *noopidentity) VerifyOpts(msg []byte, sig []byte, opts SignatureOpts) e
105105
return nil
106106
}
107107

108-
func (id *noopidentity) VerifyAttributes(proof [][]byte, spec *AttributeProofSpec) error {
108+
func (id *noopidentity) VerifyAttributes(proof []byte, spec *AttributeProofSpec) error {
109109
return nil
110110
}
111111

0 commit comments

Comments
 (0)