Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Internal error when using webauthn_public_key in table #1075

Open
smlu opened this issue Mar 22, 2021 · 4 comments
Open

Internal error when using webauthn_public_key in table #1075

smlu opened this issue Mar 22, 2021 · 4 comments

Comments

@smlu
Copy link
Contributor

smlu commented Mar 22, 2021

I'm getting eosio tool internal error when trying to compile following eosio::table struct:

struct [[eosio::table]] some_struct {
    eosio::name                 some_name;
    eosio::webauthn_public_key  key;
    uint64_t primary_key() const { return some_name.value; }
};
@sanaraufx
Copy link

What version of cdt and OS are you using?

@smlu
Copy link
Contributor Author

smlu commented Mar 24, 2021

I'm using Ubuntu over Windows WSL 2 and eosio.cdt on develop branch.

@smlu
Copy link
Contributor Author

smlu commented Mar 24, 2021

Note, it compiles if I use eosio::public_key type instead.

@smlu
Copy link
Contributor Author

smlu commented Apr 5, 2021

After some more investigation I'm firmly confident that the compiler error most likely occurs due to alias ecc_public_key is of type std::array. If I change the type to std::vector<uint8_t> it compiles.

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

No branches or pull requests

2 participants