@@ -28,46 +28,46 @@ func NewMockSigningIdentity(id string, mspid string) *MockSigningIdentity {
28
28
}
29
29
30
30
// Identifier returns the identifier of that identity
31
- func (m MockSigningIdentity ) Identifier () * msp.IdentityIdentifier {
31
+ func (m * MockSigningIdentity ) Identifier () * msp.IdentityIdentifier {
32
32
return & msp.IdentityIdentifier {ID : m .id , MSPID : m .mspid }
33
33
}
34
34
35
35
// Verify a signature over some message using this identity as reference
36
- func (m MockSigningIdentity ) Verify (msg []byte , sig []byte ) error {
36
+ func (m * MockSigningIdentity ) Verify (msg []byte , sig []byte ) error {
37
37
return nil
38
38
}
39
39
40
40
// Serialize converts an identity to bytes
41
- func (m MockSigningIdentity ) Serialize () ([]byte , error ) {
41
+ func (m * MockSigningIdentity ) Serialize () ([]byte , error ) {
42
42
return []byte ("test" ), nil
43
43
}
44
44
45
45
// SetEnrollmentCertificate sets yhe enrollment certificate.
46
- func (m MockSigningIdentity ) SetEnrollmentCertificate (cert []byte ) {
47
- m .enrollmentCertificate = cert //nolint
46
+ func (m * MockSigningIdentity ) SetEnrollmentCertificate (cert []byte ) {
47
+ m .enrollmentCertificate = cert
48
48
}
49
49
50
50
// EnrollmentCertificate Returns the underlying ECert representing this user’s identity.
51
- func (m MockSigningIdentity ) EnrollmentCertificate () []byte {
51
+ func (m * MockSigningIdentity ) EnrollmentCertificate () []byte {
52
52
return m .enrollmentCertificate
53
53
}
54
54
55
55
// Sign the message
56
- func (m MockSigningIdentity ) Sign (msg []byte ) ([]byte , error ) {
56
+ func (m * MockSigningIdentity ) Sign (msg []byte ) ([]byte , error ) {
57
57
return nil , nil
58
58
}
59
59
60
60
// PublicVersion returns the public parts of this identity
61
- func (m MockSigningIdentity ) PublicVersion () msp.Identity {
61
+ func (m * MockSigningIdentity ) PublicVersion () msp.Identity {
62
62
return nil
63
63
}
64
64
65
65
// SetPrivateKey sets the private key
66
- func (m MockSigningIdentity ) SetPrivateKey (key core.Key ) {
67
- m .privateKey = key //nolint
66
+ func (m * MockSigningIdentity ) SetPrivateKey (key core.Key ) {
67
+ m .privateKey = key
68
68
}
69
69
70
70
// PrivateKey returns the crypto suite representation of the private key
71
- func (m MockSigningIdentity ) PrivateKey () core.Key {
71
+ func (m * MockSigningIdentity ) PrivateKey () core.Key {
72
72
return m .privateKey
73
73
}
0 commit comments