Class: DbchainClient::KeyStore

Inherits:
Object
  • Object
show all
Defined in:
lib/dbchain_client/key_escrow.rb

Overview

This key store is for test purpose. Developers are supposed to implement their own key store for production.

Instance Method Summary collapse

Constructor Details

#initializeKeyStore

Returns a new instance of KeyStore.



85
86
87
# File 'lib/dbchain_client/key_escrow.rb', line 85

def initialize
  @h = {}
end

Instance Method Details

#load(key) ⇒ Object



93
94
95
# File 'lib/dbchain_client/key_escrow.rb', line 93

def load(key)
  @h[key]
end

#save(key, value) ⇒ Object



89
90
91
# File 'lib/dbchain_client/key_escrow.rb', line 89

def save(key, value)
  @h[key] = value
end