class ZKSync::KeyStore
Public Class Methods
new(root_key)
click to toggle source
# File lib/zksync/key_store.rb, line 20 def initialize(root_key) @root_key = root_key end
Public Instance Methods
file_key(archive_path)
click to toggle source
# File lib/zksync/key_store.rb, line 32 def file_key(archive_path) fs_key.child_key(".file:#{archive_path}") end
fs_key()
click to toggle source
# File lib/zksync/key_store.rb, line 28 def fs_key @fs_key ||= top_key.child_key(".fskey") end
page_key(archive_path, page_num, page_hash)
click to toggle source
# File lib/zksync/key_store.rb, line 36 def page_key(archive_path, page_num, page_hash) file_key(archive_path).child_key(".page:#{page_num}::#{page_hash}") end
top_key()
click to toggle source
# File lib/zksync/key_store.rb, line 24 def top_key @top_key ||= @root_key.child_key(".topkey") end