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:
Piotr Dyraga committed 2018-05-24 19:15:48 +02:00
1 parent 4595f69872
commit 013296b8e4
1 file changed
-6
-6
View File
@@ -55,12 +55,6 @@ type PrivateKey struct {
Lambda *big.Int 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. // Decodes ciphertext into a plaintext message.
// //
// c - cyphertext to decrypt // c - cyphertext to decrypt