midl_convert_btc_to_evm
Derive an EVM address from any Bitcoin public key using keccak256 hashing. Maps each BTC key to a unique EVM address deterministically.
Instructions
Derive EVM address from Bitcoin public key (compressed 33-byte or uncompressed 65-byte hex). In MIDL, each BTC key deterministically maps to one EVM address via keccak256.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"publicKey": "<publicKey>"
},
"name": "midl_convert_btc_to_evm"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| publicKey | Yes | Bitcoin public key (compressed 33 bytes or uncompressed 65 bytes, hex) |