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

why map unsupport non-string key #70

Open
hunjixin opened this issue Jun 9, 2022 · 1 comment
Open

why map unsupport non-string key #70

hunjixin opened this issue Jun 9, 2022 · 1 comment

Comments

@hunjixin
Copy link

hunjixin commented Jun 9, 2022

i want to save map[abi.ActorID]map[abi.ActorId]big.Int, but cbor-gen unsupport non-string key, any reason for this issue?

@Stebalien
Copy link
Collaborator

  1. Wasn't needed by anything in Filecoin.
  2. IPLD doesn't support non-string keys in CBOR maps, and we mostly use this library for IPLD objects.
  3. Canonically sorting non-string keys is kind of a pain.

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