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

error: use of undeclared identifier 'k1_recover' #17

Closed
NatPDeveloper opened this issue Aug 20, 2022 · 0 comments · Fixed by #21
Closed

error: use of undeclared identifier 'k1_recover' #17

NatPDeveloper opened this issue Aug 20, 2022 · 0 comments · Fixed by #21
Assignees
Milestone

Comments

@NatPDeveloper
Copy link

Description:

I am trying to use the new k1_recover intrinsic and I am getting error: use of undeclared identifier 'k1_recover'.

Expected Behavior:

Should be able to access the intrinsic.

I noticed that the rest of the functions listed here intrinsics.cpp did not work with the exception of sha3 as it's defined in crypto.hpp.

Steps to Reproduce:

Dependencies:
nodeos --version
v3.1.0-rc4

cdt-cpp -v
clang version 9.0.1 (https://github.com/AntelopeIO/cdt-clang 1baf03bbaa65a20b3de00fede1bc039666006c8c) (https://github.com/AntelopeIO/cdt-llvm 6a0991f5118ef11008c88c3f5e6ce2692642ffb8)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/anon/Workspaces/example-eosio-coinbase-price-feed
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/11
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/11
Candidate multilib: .;@m64
Selected multilib: .;@m64

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.1 LTS
Release:        22.04
Codename:       jammy

cmake --version
cmake version 3.22.1

make --version
GNU Make 4.3
Example File:
#include <eosio/eosio.hpp>
#include <eosio/crypto.hpp>

using namespace eosio;
using namespace std;

CONTRACT oracle : public eosio::contract {
  using contract::contract;
  public:

  [[eosio::action]] void test() {
    k1_recover();
  }
};
@stephenpdeos stephenpdeos moved this to Todo in Team Backlog Aug 23, 2022
@stephenpdeos stephenpdeos added this to the CDT 3.1.0-rc3 milestone Aug 23, 2022
@arhag arhag moved this from Todo to Awaiting Review in Team Backlog Aug 25, 2022
@arhag arhag moved this from Awaiting Review to Todo in Team Backlog Aug 25, 2022
@arhag arhag moved this from Todo to Awaiting Review in Team Backlog Aug 25, 2022
Repository owner moved this from Awaiting Review to Done in Team Backlog Sep 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
3 participants