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

Loosen size restrictions from cashaddr #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

imaginaryusername
Copy link
Owner

Cashaddr defined 8 allowed sizes but RPA may exceed the longest. Remove size enforcement at the expense of slightly less strict error checking.

@markblundeberg
Copy link
Contributor

I find the cashaddress length thing to be a bit silly. Right now there are only two valid values for the leading version byte:

  • 0 for P2PKH (always with a 160-bit hash)
  • 8 for P2SH (always with a 160-bit hash)

It's ridiculous that version 9 has been allocated for 192-bit P2SH, for instance. As far as I'm concerned, every other version has unspecified meaning.

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