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

Reserve part of hash for future use #37

Closed
whoabuddy opened this issue Dec 17, 2022 · 2 comments
Closed

Reserve part of hash for future use #37

whoabuddy opened this issue Dec 17, 2022 · 2 comments
Assignees

Comments

@whoabuddy
Copy link
Contributor

After thinking about increasing the size of the resulting hashed string in #34, it might be worth reserving some unique characters for future use.

Consider the sha512 output below:

Address: bc1q962j6tf9hyxeuhj9e3u0zhgn6dqjcrlz9cljmr
Address hash: 3dc5ad652dccbc986add9b41922d578478bca4d4df799ec5f5d70267a9efed64c1c7bc88c8a1ce7e6ee608095bb9dd57651093d1650f78c081af59c6f30ead1f
Substring 0: 3dc5ad652dccbc98 - 0.24129756660640828
...
Substring 7: 81af59c6f30ead1f - 0.5065818892208493

The substrings for 8 trait layers are 16 characters in length. What if we created 2 or more "empty" trait layers that could be filled in later? This could be used for future trait layers (think surprises, evolutions, expansions) or for the client-side trait ideas as well.

@whoabuddy
Copy link
Contributor Author

Input from 2022/01/05:

  • could change shape of JSON with top-level metadata
  • specify number of reserved bits
  • trait definitions in another attribute

@whoabuddy
Copy link
Contributor Author

Fixed in #41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants