LIT-Protocol / Issues-and-Reports

For bug reports, feature requests, and implementation questions related to Lit Protocol and use of the Lit SDK.
0 stars 0 forks source link

[Discord] Using PKP as a Wallet #61

Open awisniew207 opened 2 months ago

awisniew207 commented 2 months ago

Description of the issue

From user:

const signedTransactionRequest = await wallet.signTransaction( tx );

this code works and the transaction is signed when I call const tx1 = await wallet.sendTransaction(signedTransactionRequest); I get an error stating invalid transaction invalid sender. shouldn't the address that signed my transaction be the same as the ETH address computed from my PKP public key. I keep getting a different signature and public key everytime I sign the transaction

const pkpWallet = new PKPEthersWallet({

    controllerSessionSigs: sessionSigs,
  //  controllerAuthSig:sessionSigs,
 //   controllerSessionSigs:session.contr,
    // Or you can also pass in controllerSessionSigs
    pkpPubKey: publicKey,
    rpc: 'https://chain-rpc.litprotocol.com/http'
  });
  await pkpWallet.init();
  return {pkpWallet,sessionSigs}
}

This is my wallet.

Message link

Additional context

No response

awisniew207 commented 2 months ago

Current issue is a user asking about the same problem \~1 year after the issue first opened. I responded here asking for more details/an example of their implementation