Class: Ccrypto::Ruby::ECCPublicKey

Inherits:
ECCPublicKey
  • Object
show all
Defined in:
lib/ccrypto/ruby/engines/ecc_engine.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.to_key(bin) ⇒ Object



28
29
30
31
# File 'lib/ccrypto/ruby/engines/ecc_engine.rb', line 28

def self.to_key(bin)
  ek = OpenSSL::PKey::EC.new(bin)
  ECCPublicKey.new(ek)
end

Instance Method Details

#to_binObject



24
25
26
# File 'lib/ccrypto/ruby/engines/ecc_engine.rb', line 24

def to_bin
  @native_pubKey.to_der
end