Method: EC::PrivateKey.convert
- Defined in:
- lib/elliptic/private_key.rb
.convert(*args, **kwargs) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/elliptic/private_key.rb', line 4 def self.convert( *args, **kwargs ) if args.size==1 && args[0].is_a?( PrivateKey ) args[0] ## pass through as is (already a private key) else new( args[0], group: kwargs[:group] ) end end |