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

Standardized byte serialization #230

Closed
alippai opened this issue May 18, 2021 · 3 comments
Closed

Standardized byte serialization #230

alippai opened this issue May 18, 2021 · 3 comments

Comments

@alippai
Copy link

alippai commented May 18, 2021

Since JSON.stringify() is defined, toUint8Array() or toByteIterator() would be useful for consumption by cryptographically safe (sha256) or fast (ahash) hashing functions.

@alippai
Copy link
Author

alippai commented May 18, 2021

If this is covered by #218 this issue, feel free to close it, please.

@rricard
Copy link
Member

rricard commented Jun 21, 2021

toUint8Array and toByteIterator are not currently defined by the spec while JSON.stringify is defined by the spec and this is main reason we have to define its interaction with Record & Tuple.

If you are looking to propose toUint8Array and toByteIterator you would also need to define it related to objects and other common exisitng values in the language, which is definitely not the aim of this proposal. I will classify this as a follow-on proposal goal, if toUint8Array and toByteIterator were to be specified, we would definitely like to see how they interact with Record & Tuple (and also Boxes).

As for #218, it is already a potential follow-on proposal as-is.

@rricard
Copy link
Member

rricard commented Jul 8, 2022

In order to focus on changes that are necessary to finish this proposal, we are closing issues related to follow-on proposals. You are free to continue the discussion here and reference it in other venues.

@rricard rricard closed this as completed Jul 8, 2022
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