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

BigInt support? #11

Open
rpbouman opened this issue Jun 4, 2024 · 2 comments
Open

BigInt support? #11

rpbouman opened this issue Jun 4, 2024 · 2 comments

Comments

@rpbouman
Copy link

rpbouman commented Jun 4, 2024

I tried:

cbor_decode( cbor_encode(1n))

but it returns an empty object for me.
Is that intended? If so, what is the right way to encode/decode bigint values?

@shanewholloway
Copy link
Owner

Thanks for the question. You are correct that cbor-codec does not yet support BigInt, and I'd love to add it. RFC 8949 has Bignums implementation details to support it directly.

I'd gladly look at a PR to implement.

@rpbouman
Copy link
Author

rpbouman commented Jun 8, 2024

Hi Shane, thanks for the reply. I'm currently still in the "shopping phase" for an exchange format. Right now I'm not ready to commit to a contribution. Sorry! I just thought it would be good to clear that up. I might come back to cbor and reconsider.

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

No branches or pull requests

2 participants