0

In order to use the verifySignature method in Taquito, I need the public key of the wallet. I can only find the public key hash method - am I missing something obvious?

Thanks!

Below is how I obtain the wallet public key hash:

wallet.requestPermissions({ network: { type: 'hangzhounet' } })
      .then(() => wallet.getPKH());
1

1 Answer 1

0

Taquito doesn't have such a feature per se, but you can access this piece of information through the client property of the wallet instance, which contains the same data as the DappClient instance of the @airgap/beacon-sdk package:

const wallet = new BeaconWallet(OPTIONS);
const activeAccount = await wallet.client.getActiveAccount();
const { publicKey } = activeAccount;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.