public async Task <double> CheckPublicKeyValidity(string PublicKey) { //check the legality of the public-key in order to save it in the db table var YourPublicKey = regulatorAcc.publicKey; var PublicKeyToCheck = PublicKey; double Balance = await DappAccountController.get_ETH_BalanceOfAnyAccount(YourPublicKey, PublicKeyToCheck); return(Balance); }
public async Task <double> CheckBuyerPublicKeyLegality(string BuyerPublicKey, string YourPublicKey) { //check legality of the public key form YourPublicKey = YourPublicKey.ToLower(); DappAccount account = DappAccountController.openWith[YourPublicKey]; double buyerBalance = await DappAccountController.get_ETH_BalanceOfAnyAccount(YourPublicKey, BuyerPublicKey); return(buyerBalance); }