Categories
Cryptocurrency Development Ethereum

Is proof of stake vulnerable?

If there is a large drop in the US dollar value of ETH over a substantial period, one can assume that people will be deterred from staking ETH because they could lose money (USD) on the stake. Is there any mechanism in Ethereum proof-of-stake which maintains the incentive to stake under such circumstances?

Categories
Cryptocurrency Development Ethereum

Alternate to Allowing Insecure Unlock

Several places say insecure unlock is poor practice. Yet this module I am learning implements it. Where can I find a way to Deploy an account without insecure unlock Here is repository with files I am working with, i.e. deploy.js, etc, https://github.com/ArtieLadie/no_unlock Here is screenshot from Pluralsight By the way, I tried doing sudo geth […]

Categories
Cryptocurrency Development Ethereum

Unable to Unlock Account Even After specifying allow-insecure-unlock

Software: Ubuntu on VirtualBox I am on the Rinkeby test network, following the Pluralsight tutorial. I am having an issue with unlocking account, and many places suggest starting geth with allow-insecure-unlock. Still doesn’t work solidity@solidity:~$ geth attach http://127.0.0.1:8545 allow-insecure-unlock Welcome to the Geth JavaScript console! instance: Geth/v1.9.7-stable-a718daa6/linux-amd64/go1.13.4 at block: 5493433 (Sat, 23 Nov 2019 15:24:19 […]

Categories
Cryptocurrency Development Ethereum

Promise always

var Tx = require(‘ethereumjs-tx’).Transaction var Web3 = require(‘web3’) web3 = new Web3(‘https://mainnet.infura.io/v3/a47d55a033e344a8b0cfbc19ef9e6d94’) var balance1 = web3.eth.getBalance(‘0x0539B9c9C886e93778542XXXC64cb5EAfB902b1’) console.log(balance1) When I run this in the command prompt: C:\Users\HP\path node file.js Promise { <pending> } Why does this happen all the time? I have never executed a transaction because all of them are “pending”

Categories
Cryptocurrency Development Ethereum

call: Alternative transfer at the byte code level

I am reading the following stuff from the research paper at: Restricted Transfer We define a property that guarantees that ether transfers (via call) cannot be invoked by any user a. Violation of this property can detect Ponzi schemes [20]. Our compliance pattern requires that for all users, invocations of that call instruction do not […]

Categories
Cryptocurrency Development Ethereum

What is the best way to verify the comments in the contract code?

I have a contract that I want to be legally binding in traditional courts. It assigns rights, and for this I need legalese in the comments to describe the process. What is the best way to make sure that these comments are verifiable? Solutions that I think might work: 1) Upload the contract to Etherscan […]

Categories
Cryptocurrency Development Ethereum

Retrieve EOS LINK tokens sent by mistake to Ledger Nano S

How to retrieve my LINK Tokens sent by mistake to my Ledger Nano S and transfer them to My Ether Wallet. I cannot see them in my Ledger Live, but I found the transaction in my Etherscan.io Thank you.

Categories
Cryptocurrency Development Ethereum

Errors generating certificates in fabricsamples 2.0

When I am generating certificates in Fabricsamples 2.0 it’s showing errors like: panic: Error reading configuration: While parsing config: yaml: line 217: mapping values are not allowed in this context [recovered] panic: Error reading configuration: While parsing config: yaml: line 217: mapping values are not allowed in this context

Categories
Cryptocurrency Development Ethereum

How get private key in private network?

I launched a private RPC Blockchain network and connected through another computer to this network. The connection is successful. How can I get a private key(with Python) if the file is on another computer on this network?

Categories
Cryptocurrency Development Ethereum

Calling function on ERC20 contract through staticcall gives wrong result

I’ve made two functions to interact with a local ERC20 token. Here they are: pragma solidity ^0.5.0; contract GardenTestContract { function getBalanceOf(address _address) public view returns (bool, uint, uint, address) { address sender = msg.sender; (bool _success, bytes memory data) = _address.staticcall(abi.encode(bytes4(keccak256(‘balanceOf(address)’)), (sender))); (uint amount) = abi.decode(data, (uint)); return (_success, data.length, amount, sender); } function […]