Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

add RPC call Metadata requesting sector IDs #2584

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Commits on Jul 15, 2018

  1. renter/proto: factor out fetching recent revision

    Function getRecentRevision downloads recent revision from the host
    and checks its signatures. It takes the minimal data sufficient for
    this operation: contract ID, secret key, window start and host version.
    
    Function verifyRecentRevision calls getRecentRevision and compares
    the recent revision from host with locally known recent revision.
    It takes a private type (contractHeader) used by other code in the package.
    Boris Nagaev authored and starius committed Jul 15, 2018
    Configuration menu
    Copy the full SHA
    641f76e View commit details
    Browse the repository at this point in the history
  2. re-add SecretKey back to RenterContract

    Boris Nagaev authored and starius committed Jul 15, 2018
    Configuration menu
    Copy the full SHA
    5b75e1f View commit details
    Browse the repository at this point in the history
  3. add RPC call Metadata requesting sector IDs

    This is second attempt of NebulousLabs#2321
    
    The whole list of IDs can be expensive for a host to provide for free,
    but a short list of sector IDs (up to 2^17) is cheap. At the same time
    it opens doors for stateless clients, i.e. recovering everything from
    seed only.
    Boris Nagaev authored and starius committed Jul 15, 2018
    Configuration menu
    Copy the full SHA
    7833125 View commit details
    Browse the repository at this point in the history