Skip to content

Commit

Permalink
Merge "Add debug prints to Sign()"
Browse files Browse the repository at this point in the history
  • Loading branch information
ghaskins authored and Gerrit Code Review committed Jan 25, 2017
2 parents cb39a14 + 49aa89f commit c9242fe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions msp/identities.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ func (id *signingidentity) Sign(msg []byte) ([]byte, error) {
return nil, fmt.Errorf("Failed computing digest [%s]", err)
}

mspLogger.Debugf("Sign: plaintext: %X \n", msg)
mspLogger.Debugf("Sign: digest: %X \n", digest)

// Sign
return id.signer.Sign(rand.Reader, digest, nil)
}
Expand Down

0 comments on commit c9242fe

Please sign in to comment.