Skip to main content

New answers tagged

0 votes

How to parse a raw signature from PolkadotJS in Substrate runtime

This is how we verify the signature in runtime. Darwinia uses this to migrate the old accounts to new EVM chain. https://github.com/darwinia-network/darwinia/blob/...
AurevoirXavier's user avatar
1 vote
Accepted

Invalid JSON blob: unknown field `allianceMotion`

The expected strings are listing out the pallets included in your runtime. It seems that allianceMotion is not a pallet included in the runtime inside your node, and thus rejects this field when ...
Shawn Tabrizi's user avatar
  • 16.2k
1 vote

Alternative to BlakeTwo256 for WASM Compatibility in a no_std Environment in Rust

sp-runtime-interface compiled without std will force to be compiled in a 32bits environment, but you want to compile to wasm which is 32bits AFAIK. So you can compile to std for testing with: cargo ...
gui's user avatar
  • 231
0 votes

Alternative to BlakeTwo256 for WASM Compatibility in a no_std Environment in Rust

Try another version of sp_runtime: https://paritytech.github.io/polkadot-sdk/master/src/sp_runtime/traits.rs.html#1028 Latest version no longer requires std for BlakeTwo256
Tin Chung's user avatar
  • 348

Top 50 recent answers are included