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 addr params accessor funcs. #1766

Merged
merged 1 commit into from
Jun 14, 2019

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Jun 14, 2019

This defines several new functions on the Params struct which return the magic prefix bytes for addresses.

The new functions are:

  • AddrIDPubKeyV0
  • AddrIDPubKeyHashECDSAV0
  • AddrIDPubKeyHashEd25519V0
  • AddrIDPubKeyHashSchnorrV0
  • AddrIDScriptHashV0

This will allow the parameters to be used directly as input to an interface in the future.

@davecgh davecgh added this to the 1.5.0 milestone Jun 14, 2019
@davecgh davecgh force-pushed the chaincfg_addr_params_interface_funcs branch from e9b1b66 to 15ed24c Compare June 14, 2019 22:35
This defines several new functions on the Params struct which return the
magic prefix bytes for addresses.

The new functions are:

- AddrIDPubKeyV0
- AddrIDPubKeyHashECDSAV0
- AddrIDPubKeyHashEd25519V0
- AddrIDPubKeyHashSchnorrV0
- AddrIDScriptHashV0

This will allow the parameters to be used directly as input to an
interface in the future.
@davecgh davecgh force-pushed the chaincfg_addr_params_interface_funcs branch from 15ed24c to 2968070 Compare June 14, 2019 22:55
@davecgh davecgh merged commit 2968070 into decred:master Jun 14, 2019
@davecgh davecgh deleted the chaincfg_addr_params_interface_funcs branch June 14, 2019 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants