The contract in eos only support idx64, idx128, idx256 type for the secondary index, and key only support idx64, how can I set the public_key as the index?
The public_key in is char[34], it's length is > 256
The contract in eos only support idx64, idx128, idx256 type for the secondary index, and key only support idx64, how can I set the public_key as the index?
The public_key in is char[34], it's length is > 256
I met a similar question. It's not a good idea to make public_kay as an index (make some new key instead), but if you really want to - you can calculate sha256 of the public key and use first 64 (128 \ 256) bits as an index.