Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blockchain/standalone: Implement a new module. #1808

Merged

Commits on Aug 6, 2019

  1. Configuration menu
    Copy the full SHA
    cf97a27 View commit details
    Browse the repository at this point in the history
  2. blockchain/standalone: Implement a new module.

    This implements a new module named blockchain/standalone which aims to
    provide several of the standalone functions currently available in
    blockchain and ultimately replace them in the next major version.
    
    The primary goal of offering these functions via a separate module is to
    reduce the required dependencies to a minimum as compared to the
    blockchain module.  It will be ideal for applications such as
    lightweight clients that need to ensure basic security properties hold
    and calculate appropriate vote subsidies and block explorers.
    
    For example, some things an SPV wallet needs to prove are that the block
    headers all connect together, that they satisfy the proof of work
    requirements, and that a given transaction tree is valid for a given
    header.
    
    The new module currently only provides functions related to proof of
    work, however, future commits will provide functions for merkle root
    calculation, subsidy calculation, and coinbase transaction
    identification.  It is being done in stages to help ease review since it
    is consensus critical code.
    
    Finally, it also includes comprehensive tests, full package
    documentation, and basic usage examples.
    davecgh committed Aug 6, 2019
    Configuration menu
    Copy the full SHA
    2c7d204 View commit details
    Browse the repository at this point in the history