-
Notifications
You must be signed in to change notification settings - Fork 17
Closed
Labels
D2-bugSomething isn't workingSomething isn't workingI3-highshould be completed within 5 working daysshould be completed within 5 working days
Description
Context
What's the right type for Web3Validation when verifying a web3 identity?
I am having issues with the verifyIdentity transaction. I get identityManagementMock.VerifySubstrateSignatureFailed all the time, as if the payload sent is not being picked up in the pallet; i.e., I may have the wrong type/payload for IdentityMultiSignature.
I've tried these combinations:
Web3: {
Substrate: {
message: `0x1234...`;
signature: {
Sr25519: `0x1234...`;
}
}
}Web3: {
Substrate: {
message: `0x1234...`;
signature: `0x1234...`;
}
}Web3: {
Substrate: {
message: `0x1234...`;
signature: {
Sr25519: {
Signature: `0x1234...`;
}
}
}
}What's the correct one?
For signing, I am doing:
message: blake2_256(code, address, identity)
signature: sign(address, message)I want to make sure the types are right (they are incomplete on the ts-test also) as it is not giving me assurance on what's wrong.
I'd appreciate any insight, thanks
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
D2-bugSomething isn't workingSomething isn't workingI3-highshould be completed within 5 working daysshould be completed within 5 working days