I am working on the moonbeams crowdloan pallet. In associate_native_identity extrinsic we need proof: MultiSignature in parameter.
how can we get that?
Substrate and Polkadot Stack Exchange is a question and answer site for developers building blockchains with the Substrate SDK. It only takes a minute to sign up.Sign up to join this community
You can use polkadot js signing for that sample link
In that for data you can read below
The format of data is: b"" "SignatureNetworkIdentifier" + "new_account" + b"" https://github.com/PureStake/crowdloan-rewards/blob/main/src/lib.rs#L220
We need to convert that fields into hex and join and the out put will be the data which we can sign and and that signature proof we can use it as proof. to convert the data into hex you can use this web: https://codebeautify.org/string-hex-converter
<Bytes>: 3c42797465733e sign- (SignatureNetworkIdentifier): 7369676e2d account hex: 88fd77d706e168d78713a6a927c1ddfae367b081fb2829b119bbcc6db9af401d </Bytes>: 3c2f42797465733e
data after merge it: 0x3c42797465733e7369676e2d88fd77d706e168d78713a6a927c1ddfae367b081fb2829b119bbcc6db9af401d3c2f42797465733e
you can use it is data then sign the data and you will get the proof which you can use it in extrinsics.