useVerifyBtcWallet
Hook containing utility functions to verify an BTC wallet.
Usage
import { useVerifyBtcWallet } from '@dustlabs/profiles/btc';
const { verifyWallet } = useVerifyBtcWallet()Return Value
isLoadingVerifyWallet
boolean
The loading state of the verifyWallet function.
verifyWallet
(message: string) => Promise<string | null>
Function to verify an BTC wallet using a message provided in the params. Returns the signed message hash.
verificationMethod
The verification method used to verify the BTC wallet. In the case of BTC, this will always be ProfileVerificationMethod.BITCOIN_BIP322_MESSAGE_SIGNATURE.