signMessage
Wallet & Address Type Support Matrix
Signing Method
Wallet Type
Supported Address Types
ECDSA
Software & Hardware
P2PKH, P2SH, P2WPKH, P2TR
BIP322-Simple
Software
P2WPKH, P2TR
BIP322-Simple
Hardware (Pro, Classic1S)
P2TR
Sign a message using either ECDSA or BIP322-Simple signing method.
Method
async function signMessage(
message: string,
type?: "ecdsa" | "bip322-simple"
): Promise<string>Params
message— requiredstringA string to signtype— optionalstringSigning method type, either "ecdsa" or "bip322-simple". Default is "ecdsa"
Returns
signature — string The signed message signature
Examples
Demo
Last updated
Was this helpful?