lib/sp_store/p_chip/soft_node_cache.rb
# :nodoc: software implementation of P-chip certify
:nodoc: software implementation of P-chip certify
: nodoc : software implementation of P - chip certify
def unsafe_certify(hmac_key, nonce, cache_entry)
    check_entry cache_entry
    raise RuntimeError, 'Entry not verified' unless @verified[cache_entry]
    Crypto.hmac_for_block_hash @node_ids[cache_entry],
                               @node_hashes[cache_entry], nonce, hmac_key
  end
def unsafe_certify ( hmac_key , nonce , cache_entry ) check_entry cache_entry raise RuntimeError , 'Entry not verified' unless @verified [ cache_entry ] Crypto . hmac_for_block_hash @node_ids [ cache_entry ] , @node_hashes [ cache_entry ] , nonce , hmac_key end
:nodoc: software implementation of P-chip certify
: nodoc : software implementation of P - chip certify
hmac_key
nonce
cache_entry