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

chaincfg: Add RegisterHDKeyID func to populate HD key ID pairs #1617

Merged
merged 1 commit into from
Sep 8, 2020

Commits on Aug 24, 2020

  1. chaincfg: Add RegisterHDKeyID func to populate HD key ID pairs

    Currently, the only way to register HD version bytes is by initializing
    chaincfg.Params struct, and registering it during package init.
    RegisterHDKeyID provides a way to populate custom HD version bytes,
    without having to create new chaincfg.Params instances. This is useful
    for library packages who want to use non-standard version bytes for
    serializing extended keys, such as the ones documented in SLIP-0132.
    
    This function is complementary to HDPrivateKeyToPublicKeyID, which is
    used to lookup previously registered key IDs.
    onyb committed Aug 24, 2020
    Configuration menu
    Copy the full SHA
    20ffdf4 View commit details
    Browse the repository at this point in the history