Class: Ed25519Keccak::Keccak512
- Inherits:
-
Ed25519Base
- Object
- Ed25519Base
- Ed25519Keccak::Keccak512
- Defined in:
- lib/ed25519_keccak/keccak512.rb
Overview
using Keccak(original) as a hash function
Instance Method Summary collapse
-
#initialize ⇒ Keccak512
constructor
A new instance of Keccak512.
Methods inherited from Ed25519Base
#secret_to_public, #sign, #verify
Constructor Details
#initialize ⇒ Keccak512
Returns a new instance of Keccak512.
7 8 9 |
# File 'lib/ed25519_keccak/keccak512.rb', line 7 def initialize() super( ->(s){ return Digest::SHA3.digest( s , 512 ) } ) end |