Class: Chain::MockHSM::ClientModule

Inherits:
ClientModule show all
Defined in:
lib/chain/mock_hsm.rb

Instance Attribute Summary

Attributes inherited from ClientModule

#client

Instance Method Summary collapse

Methods inherited from ClientModule

#initialize

Constructor Details

This class inherits a constructor from Chain::ClientModule

Instance Method Details

#keysKey::ClientModule

Returns:



11
12
13
# File 'lib/chain/mock_hsm.rb', line 11

def keys
  @keys_module ||= Key::ClientModule.new(client)
end

#signer_connConnection

MockHSM signer connection.

Returns:



17
18
19
20
21
22
23
24
# File 'lib/chain/mock_hsm.rb', line 17

def signer_conn
  return @signer_conn if @signer_conn

  opts = client.conn.opts
  opts[:url] += '/mockhsm'

  @signer_conn = Connection.new(opts)
end