1

I am working on the moonbeams crowdloan pallet. In associate_native_identity extrinsic we need proof: MultiSignature in parameter.

how can we get that?

1 Answer 1

0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.