I am trying to Sign on front-end message (new Signable) and then Verify that on backend, this is how I sign the message iwth Maiar DeFi Wallet
```
const { address, signature } = providerInstance.account;
const msg = address + 'patryk' + JSON.stringify({});
const message = new SignableMessage({
message: Buffer.from(msg, "utf8"),
signature: new Signature(Buffer.from(signature || '', 'hex')),
address: new Address(address)
});
const signedMessage = await providerInstance.signMessage(message);
```
and on backend I validate this by
```
const address = new Address(wallet);
const publicKey = new UserPublicKey(address.pubkey());
const verifier = new UserVerifier(publicKey)
return verifier.verify(signedMessage);
```
but verify fails. Any idea why?
Seems weird to me that you are building the SignableMessage with a signature. That's not how it would work on the frontend.
Also important parts on how you actually get and build your signedMessage in the backend are missing
Seems weird to me that you are building the SignableMessage with a signature. That's not how it would work on the frontend. Also important parts on how you actually get and build your signedMessage in the backend are missing