Skip to content

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.

3 participants