Skip to content

schnorrkel (with no_std support) doesn't work with sgx #93

Closed
@brenzi

Description

I'm currently trying to use

https://github.com/w3f/schnorrkel

within an sgx enclave here:

https://github.com/scs/substraTEE-worker/blob/37c76121c4bbf4e3eee210b29e7c4f2d5de1ada9/enclave/src/lib.rs#L35

The library supports #[no_std]. As @dingelish wrote here, this crate should be automatically supported, right?

However, if I add

extern crate schnorrkel;
use schnorrkel::keys::MiniSecretKey;

I get the usual std collision:

error: duplicate lang item in crate `std`: `f32_runtime`.
  |
  = note: first defined in crate `sgx_tstd`.

error: duplicate lang item in crate `std`: `f64_runtime`.
  |
  = note: first defined in crate `sgx_tstd`.

error: duplicate lang item in crate `std`: `panic_impl`.
  |
  = note: first defined in crate `sgx_tstd`.

error: duplicate lang item in crate `std`: `oom`.
  |
  = note: first defined in crate `sgx_trts`.

error: aborting due to 4 previous errors

error: Could not compile `SealedKeyEnclave`.

To learn more, run the command again with --verbose.

Any help is appreciated

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions