Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to calculate an proof for associateNativeIdentity? #58

Open
Bart200c opened this issue May 6, 2022 · 3 comments
Open

How to calculate an proof for associateNativeIdentity? #58

Bart200c opened this issue May 6, 2022 · 3 comments

Comments

@Bart200c
Copy link

Bart200c commented May 6, 2022

I use the polkadot.js sign & verify to calculate the proof, but always InvalidClaimSignature.

Example:

  1. account EVE, 5HGjWAeFDfFCWPsjFQdVV2Msvz2XtMktvgocEZcCj68kUMaw (Relay AccountId, Para AccountId is EVE)
  2. sign string: <Bytes>test-5HGjWAeFDfFCWPsjFQdVV2Msvz2XtMktvgocEZcCj68kUMaw</Bytes>, test- is SignatureNetworkIdentifier
  3. proof: 0x0a3e920c4e95ec5925d3df5b539dce620eca7218a01f0ea4ff04cf9fc6714e0866586aaa84177b960800f795e9495158db1bd9ce449ec6862ce24739cbd10189

Sign&Verify result:
image

Ps: Also try to EVE PublicKey: <Bytes>test-0xe659a7a1628cdd93febc04a4e0646ea20e9f5f0ce097d9a05290d4a9e054df4e</Bytes>

@girazoki
Copy link
Contributor

girazoki commented May 9, 2022

where are you trying this? The network identifiers are:

Moonbase alpha: moonbase-
Moonriver: moonriver-
Moonbeam: moonbeam-

@girazoki
Copy link
Contributor

girazoki commented May 9, 2022

Also, are u signing through polkadotjs apps? or the extension?

@girazoki
Copy link
Contributor

girazoki commented May 9, 2022

you might also want to put the input in hex and not in string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants