farukterzioglu / HDWallet

A generic HD wallet for Elliptic Curve (Secp256k1) and Edwards-curve (Ed25519) based crypto currencies like Bitcoin, Ethereum, Cosmos, Tezos, Tron, Cardano, Polkadot, Avalanche, FileCoin and more.
MIT License
79 stars 36 forks source link

Add post actions to return wallet details #12

Open farukterzioglu opened 3 years ago

farukterzioglu commented 3 years ago

Add relevant methods to return address-private key pairs e.g.

[HttpPost("/Avalanche/{account}/external/{index}")]
public ActionResult<KeyPair> GetDepositWallet(uint account, uint index)

For only apps that allowed this by configuration exposePrivateKey

should return a response like;

{
 "address": "X-avax1....",
 "privateKey" : "adf54djmr...."
}