Skip to content

Web3Validation types for Polkadot.js API metadata #1058

@jonalvarezz

Description

@jonalvarezz

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

Metadata

Metadata

Labels

D2-bugSomething isn't workingI3-highshould be completed within 5 working days

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions