Skip to main content

All Questions

Tagged with
3 votes
1 answer
40 views

Is there a way to use a crate that depends on the `std` in substrate OCW?

from what I've learned so far, the OCW is designed specifically for executing heavy and time-consuming computations outside of the runtime. As the OCW is not a part of runtime/wasm, I guess the OCW ...
Yahor Tsaryk's user avatar
0 votes
1 answer
124 views

app_crypto!(sr25519, KEY_TYPE): cannot find trait `TryFrom` in this scope

I am building an ocw demo, the code is from https://github.com/paritytech/substrate/blob/master/frame/examples/offchain-worker/src/lib.rs, when using polkadot-v0.9.25 version, it appears got this ...
Bart Yang's user avatar