Class: Linzer::Ed25519::Key

Inherits:
Key
  • Object
show all
Defined in:
lib/linzer/ed25519.rb

Instance Attribute Summary

Attributes inherited from Key

#material

Instance Method Summary collapse

Methods inherited from Key

#initialize, #key_id

Constructor Details

This class inherits a constructor from Linzer::Key

Instance Method Details

#sign(data) ⇒ Object



6
7
8
# File 'lib/linzer/ed25519.rb', line 6

def sign(data)
  material.sign(nil, data)
end

#verify(signature, data) ⇒ Object



10
11
12
# File 'lib/linzer/ed25519.rb', line 10

def verify(signature, data)
  material.verify(nil, signature, data)
end