コード例 #1
0
        public async Task <(string Address, string AddressContext, string PrivateKey)> GenerateWalletAsync()
        {
            var privateKey = _keyGenerator.GeneratePrivateKey();
            var publicKey  = _keyGenerator.GeneratePublicKey(privateKey);
            var address    = (await _hashCalculator.SumAsync(publicKey)).Slice(12, 32);

            return(address.ToHexString(), null, privateKey.ToHexString());
        }