| 97 | |
| 98 | // For your specific case, let's try a different approach |
| 99 | function tryDirectConversion() { |
| 100 | console.log('\n=== ATTEMPTING DIRECT CONVERSION ==='); |
| 101 | |
| 102 | // f410 addresses are base32-encoded delegated addresses |
| 103 | const addressWithoutPrefix = f410Address.replace(/^[tf]410/, ''); |
| 104 | |
| 105 | console.log('Address without prefix:', addressWithoutPrefix); |
| 106 | console.log('This needs base32 decoding to get the 20-byte Ethereum address'); |
| 107 | |
| 108 | // You would need a proper base32 decoder here |
| 109 | // The result should be a 20-byte array that represents the Ethereum address |
| 110 | } |
| 111 | |
| 112 | // Main execution |
| 113 | async function main() { |