module EC
Constants
- GROUP
“cached” / available groups for now include:
todo/check: change group to curve - why? why not?
- MAJOR
- MINOR
- PATCH
- SECP256K1
- VERSION
Public Class Methods
builtin_curves()
click to toggle source
# File lib/elliptic.rb, line 100 def self.builtin_curves OpenSSL::PKey::EC.builtin_curves end
root()
click to toggle source
# File lib/elliptic/version.rb, line 19 def self.root File.expand_path( File.dirname(File.dirname(File.dirname(__FILE__))) ) end
sign( message, priv_key )
click to toggle source
# File lib/elliptic.rb, line 83 def self.sign( message, priv_key ) signer = PrivateKey.convert( priv_key ) signer.sign( message ) end
verify?( message, signature, pub_key )
click to toggle source
# File lib/elliptic.rb, line 88 def self.verify?( message, signature, pub_key ) verifier = PublicKey.convert( pub_key ) verifier.verify?( message, signature ) end
Also aliased as: valid_signature?
version()
click to toggle source
# File lib/elliptic/version.rb, line 11 def self.version VERSION end