Removed PrivateKey's String() method
It's better to have no code encouraging to turn key into a string and printing it somewhere, especially that string contains private key Lambda parameter.
This commit is contained in:
1 file changed
-6
@@ -55,12 +55,6 @@ type PrivateKey struct {
|
||||
Lambda *big.Int
|
||||
}
|
||||
|
||||
func (this *PrivateKey) String() string {
|
||||
ret := fmt.Sprintf("n : %x", this.N)
|
||||
ret += fmt.Sprintf("lambda: %x", this.Lambda)
|
||||
return ret
|
||||
}
|
||||
|
||||
// Decodes ciphertext into a plaintext message.
|
||||
//
|
||||
// c - cyphertext to decrypt
|
||||
|
||||
Reference in new issue
Block a user