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

stdscript: Add consolidated stake extracts. #2816

Merged
merged 4 commits into from
Nov 19, 2021

Commits on Nov 19, 2021

  1. stdscript: Add v0 stake-tagged p2pkh extract.

    This adds support for directly extracting the public key hash from
    standard version 0 stake-tagged pay-to-pubkey-hash scripts along with
    full test coverage.
    
    While all of this data can be extracted from each individual type, it
    can be more convenient for callers who treat all public key hashes as
    the same entity which is the case for many applications.
    davecgh committed Nov 19, 2021
    Configuration menu
    Copy the full SHA
    d4f5338 View commit details
    Browse the repository at this point in the history
  2. stdscript: Add extract v0 stake-tagged p2pkh bench.

    BenchmarkExtractStakePubKeyHashV0
    ---------------------------------
    v0_complex_non_standard-16                        229676676   5.139 ns/op
    v0_stake_submission_p2pkh-ecdsa-secp256k1-16      335241789   3.531 ns/op
    v0_stake_gen_p2pkh-ecdsa-secp256k1-16             268142942   4.517 ns/op
    v0_stake_revoke_p2pkh-ecdsa-secp256k1-16          244045095   4.908 ns/op
    v0_stake_change_p2pkh-ecdsa-secp256k1-16          220275314   5.441 ns/op
    v0_treasury_generation_p2pkh-ecdsa-secp256k1-16   197104339   6.086 ns/op
    davecgh committed Nov 19, 2021
    Configuration menu
    Copy the full SHA
    a81014d View commit details
    Browse the repository at this point in the history
  3. stdscript: Add v0 stake-tagged p2sh extract.

    This adds support for directly extracting the script hash from standard
    version 0 stake-tagged pay-to-script-hash scripts along with full test
    coverage.
    
    While all of this data can be extracted from each individual type, it
    can be more convenient for callers who treat all script hashes as the
    same entity which is the case for many applications.
    davecgh committed Nov 19, 2021
    Configuration menu
    Copy the full SHA
    2e09c16 View commit details
    Browse the repository at this point in the history
  4. stdscript: Add extract v0 stake-tagged p2sh bench.

    BenchmarkExtractStakeScriptHashV0
    ---------------------------------
    v0_complex_non_standard       226793582   5.253 ns/op
    v0_stake_submission_p2sh      372232682   3.233 ns/op
    v0_stake_gen_p2sh             305602378   3.979 ns/op
    v0_stake_revoke_p2sh          201691552   5.064 ns/op
    v0_stake_change_p2sh          209401243   5.687 ns/op
    v0_treasury_generation_p2sh   221794405   5.419 ns/op
    davecgh committed Nov 19, 2021
    Configuration menu
    Copy the full SHA
    b1b9a86 View commit details
    Browse the repository at this point in the history