ava-labs / avalanchego

Go implementation of an Avalanche node.
https://avax.network
BSD 3-Clause "New" or "Revised" License
2.12k stars 672 forks source link

How do i create an X-chain wallet address with its correspond private key #3391

Open segun-flexible opened 1 month ago

segun-flexible commented 1 month ago

I am working on creating an X-Chain address in a Node.js environment, specifically with Avalanche's X-Chain. The official documentation outlines how to do this using AvalancheGo APIs, but it doesn't provide a clear example of how to achieve this in a Node.js application using available libraries like @avalabs/avalanchejs.

And also i also notice that avm.createAddress is depreciated, so how do we programatically create a wallet address of X-chain

philipjonsen commented 4 weeks ago

Gonna look into to it a little bit more,.

philipjonsen commented 4 weeks ago

You are probably right. I found around 25 or so leaked secret like generic passwords, rsa_certs, base64 encoded private keys and so on. We should probably make this confidential until it's resolved. I will share my findings in a more secure place.

philipjonsen commented 4 weeks ago

Aswell as leaked API's.

philipjonsen commented 4 weeks ago

I managed to fix most of it by revoking the secrets. A lot is just test, so it dosn't really matter. But some are under other repo's and worth looking into. I'll gladly share my finding with some mod/admin to look into it. Thanks for the finding!