Class: CryptoToolchain::Tools::DSARecoverNonceFromSignatures::Input
- Defined in:
- lib/crypto_toolchain/tools/dsa_recover_nonce_from_signatures.rb
Instance Attribute Summary collapse
-
#hash ⇒ Object
readonly
Returns the value of attribute hash.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#r ⇒ Object
readonly
Returns the value of attribute r.
-
#s ⇒ Object
readonly
Returns the value of attribute s.
Instance Method Summary collapse
-
#initialize(r:, s:, message:) ⇒ Input
constructor
A new instance of Input.
Constructor Details
#initialize(r:, s:, message:) ⇒ Input
Returns a new instance of Input.
7 8 9 10 11 12 |
# File 'lib/crypto_toolchain/tools/dsa_recover_nonce_from_signatures.rb', line 7 def initialize(r: , s: , message: ) @r = r.to_i @s = s.to_i @message = @hash = CryptoToolchain::Utilities::SHA1.hexdigest() end |
Instance Attribute Details
#hash ⇒ Object (readonly)
Returns the value of attribute hash.
13 14 15 |
# File 'lib/crypto_toolchain/tools/dsa_recover_nonce_from_signatures.rb', line 13 def hash @hash end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
13 14 15 |
# File 'lib/crypto_toolchain/tools/dsa_recover_nonce_from_signatures.rb', line 13 def @message end |
#r ⇒ Object (readonly)
Returns the value of attribute r.
13 14 15 |
# File 'lib/crypto_toolchain/tools/dsa_recover_nonce_from_signatures.rb', line 13 def r @r end |
#s ⇒ Object (readonly)
Returns the value of attribute s.
13 14 15 |
# File 'lib/crypto_toolchain/tools/dsa_recover_nonce_from_signatures.rb', line 13 def s @s end |