Class: Universa::PublicKey

Inherits:
RemoteAdapter show all
Defined in:
lib/universa/keys.rb

Overview

A com.icodici.crypto.PublicKey extension. As the key is immutable, caching is used to avoid innecessary UMI calls.

Instance Method Summary collapse

Methods inherited from RemoteAdapter

#__getobj__, #__setobj__, #initialize, #inspect, invoke_static, remote_class, remote_class_name, #to_s

Constructor Details

This class inherits a constructor from Universa::RemoteAdapter

Instance Method Details

#long_addressKeyAddress

Returns long address.

Returns:



48
49
50
# File 'lib/universa/keys.rb', line 48

def long_address
  @long_address ||= get_long_address()
end

#short_addressKeyAddress

Returns short address.

Returns:



43
44
45
# File 'lib/universa/keys.rb', line 43

def short_address
  @short_address ||= get_short_address()
end