• Breaking News

    Thursday, August 6, 2020

    Ethereum Visualize Solidity

    Ethereum Visualize Solidity


    Visualize Solidity

    Posted: 06 Aug 2020 09:05 AM PDT

    There's a new zkrollup in town, Hermez by iden3

    Posted: 06 Aug 2020 06:24 PM PDT

    How to become a Validator on the Ethereum 2.0 Official ETH2 Medalla testnet

    Posted: 06 Aug 2020 06:12 AM PDT

    How The Opyn Ethereum Contract was Hacked for $943,000 - Technical Review

    Posted: 06 Aug 2020 03:15 PM PDT

    Hyperchange x Augur: Decentralized Prediction Markets �� w/ Tom Kysar

    Posted: 06 Aug 2020 01:32 PM PDT

    ETC faces its second 51% attack in a week, price has barely moved

    Posted: 06 Aug 2020 09:29 AM PDT

    https://cointelegraph.com/news/is-etc-102-screwed-after-second-51-attack

    Seriously? As per Nicehash, the first attack cost $200k and yielded 28x returns. $200k isn't even that much money tbh, any bunch of average people can pool together the money. The only thing really needed is technical knowledge to do it without a digital fingerprint or single point of failure, which for all I know costs more than the attack itself.

    Anyone has any idea why this coin still has a 800 million market cap? Also would shorting be a good idea? I looked at the January attack but apparently the coin has risen 2.5x in the same month.

    submitted by /u/samuelshadrach
    [link] [comments]

    IDEX 2.0 API sandbox now live! IDEX is the only DEX that supports advanced order types and is capable of processing hundreds of thousands of trades per second. Learn more and get your bots ready for mainnet launch!

    Posted: 06 Aug 2020 07:19 AM PDT

    [LIVE] Ethereum 2.0 Call #45 [2020/8/6 - 14:00 GMT]

    Posted: 06 Aug 2020 05:28 AM PDT

    I made a user-friendly crypto directory to help newcomers navigate the world of crypto

    Posted: 06 Aug 2020 06:09 AM PDT

    Ethereum 2.0: Final Public Testnet Launched

    Posted: 06 Aug 2020 08:16 AM PDT

    Rari Capital launches community Telegram

    Posted: 06 Aug 2020 01:20 PM PDT

    Testing with ENS and Waffle

    Posted: 06 Aug 2020 03:02 AM PDT

    Can I add gas to a pending transfer?

    Posted: 06 Aug 2020 10:30 AM PDT

    I'm busy going through my accounts and sent myself my eth balance from Jaxx. It's been pending for 5 days. Can I gas it up? Or do I just wait?

    submitted by /u/akescpt
    [link] [comments]

    IDEX 2.0 API sandbox now live! Learn more and get your bots ready for mainnet launch!

    Posted: 06 Aug 2020 07:11 AM PDT

    8 things stopping CeFi from integrating DeFi

    Posted: 06 Aug 2020 10:15 AM PDT

    Ethereum Improvement Proposal (EIP) Question???

    Posted: 06 Aug 2020 06:50 PM PDT

    When an EIP is proposed, does the community vote and then implement it (if everyone agrees) on the main network....or does the community test the EIP's effects on a subset of "test" networks, and then use the data gathered from the test networks to vote on implementing the EIP on the main network?

    submitted by /u/nextart-io
    [link] [comments]

    Announcement of NerveNetwork Main-Net Opening Nodes and Staking

    Posted: 06 Aug 2020 01:53 PM PDT

    Introducing Alchemy Supernode: The Industry Leading Ethereum API

    Posted: 06 Aug 2020 05:15 PM PDT

    Synthentix Exchange Tutorial: How to Trade Synthetic Assets Crypto, Forex, Indices & Commodities

    Posted: 06 Aug 2020 07:10 AM PDT

    Question: is there any difference in PoS between validator with 32Ξ vs one with 40Ξ or 320Ξ ?

    Posted: 06 Aug 2020 03:48 PM PDT

    E.g running 10x32Ξ nodes vs 1x320Ξ node.

    submitted by /u/KamikazeSexPilot
    [link] [comments]

    I badly need this code to work. I'm running it on remix dot ethereum dot org. can someone help me debug it? its been weeks and i still dont have any progress

    Posted: 06 Aug 2020 10:08 AM PDT

    pragma solidity ^0.4.26;

    import "github.com/ethereum/dapp-bin/library/stringUtils.sol";

    contract ElectronicHealthRecords {

    bool public status;

    address public Admin;

    address public EHRsManager;

    uint public numberOfUsers;

    mapping (address=>uint) public userId;

    User[] public users;

    event UserAdded(address UserPK, string UserRole);

    event UserRemoved(address UserPK);

    event DataResult(address UserPK);

    event ReturnAccessResult(address index_from, string message, bool result, uint time, uint penalty);

    //Creating a data structure for storing variables of different data types

    struct User {

    address user;// from the original code "address userPK"

    string role;// from the original code "address userRole"

    }

    struct EHRstorage {

    string storageName;

    address AreaID;

    string Hash_value;

    address PatientID;

    }

    struct PolicyItem { //for <EHRs cloud resource, action>; {

    bool userPK;

    bool AreaID;

    bool PatientID;

    string permission; //verify permission: "allow" or "deny"

    bool result; //ReturnAccessResult

    bool checkID; //check the access

    }

    mapping (bytes32=>EHRstorage)

    public DTHtable;

    mapping (bytes32=>mapping(bytes32=>PolicyItem)) policies; ///mapping(EHRs resource, action) to policy checking

    modifier onlyAdmin {

    require(msg.sender==Admin);

    _;

    }

    function SC_creation()public {

    Admin=msg.sender;

    status=true;

    User(Admin, 'Creator of Smart Contract');

    numberOfUsers=0;

    }

    function addUser(address userPK, string userRole)

    onlyAdmin public {

    require(status = true);

    uint id = userId[userPK];

    if(id==0) {

    userId[userPK]=users.length;

    id=users.length++;

    }

    users[id]= User({user:userPK, role:userRole});

    emit UserAdded(userPK, userRole);

    numberOfUsers++;

    }

    function removeUser(address userPK){

    onlyAdmin; {

    require(userId[userPK]!=0);

    for (uint i=userId[userPK]; i<users.length-1;i++){

    users[i]=users[i+1];

    }

    delete users[users.length-1];

    users.length--;

    emit UserRemoved(userPK);

    numberOfUsers--;

    }

    }

    function stringToBytes32(string memory source) returns (bytes32 result){

    bytes memory tempEmptyStringTest = bytes(source);

    if (tempEmptyStringTest.length == 0) {

    return 0x0;

    }

    assembly {

    result := mload(add(source, 32))

    }

    }

    function stringToBytes32Memory(string memory source) returns (bytes result )

    {

    bytes memory b3 = bytes(source);

    return b3;

    }

    function retrieveEHRs(string stringToBytes32, string retrieve_name, address userPK,string storageName, address AreaID, address PatientID, string Hash_value)

    onlyAdminp public{

    bytes32 key=stringToBytes32(retrieve_name);

    /'Look up the EHRs data in DHT table'/

    DTHtable[key].storageName=storageName;

    DTHtable[key].AreaID=AreaID;

    DTHtable[key].PatientID=PatientID;

    DTHtable[key].Hash_value=Hash_value;

    emit DataResult(userPK);

    //DTHtable[key];

    }

    function policyList(address EHRsManager,stringToBytes32,'/ string_resource, string_action, string_permission /'address userPK, address AreaID, address PatientID'/)

    public{

    bytes32 EHRresource=stringToBytes32(_resource);

    bytes memory action=stringToBytesMemory(_action);

    if (msg.sender==EHRsManager){

    policies[EHRresource][action].userPK=true;

    policies[EHRresource][action]..AreaID=true;

    policies[EHRresource][action].PatientID=true;

    policies[EHRresource][action].permission=_permission;

    policies[EHRresource][action].result=false;

    }

    else revert();

    }

    function penalty( string_resource, string_action, uint time )

    public{

    //bool policycheck=false;

    //bool behaviorcheck=true;

    bool userPKcheck = false;

    bool AreaIDcheck = false;

    bool PatientIDcheck = false;

    bool checkID = flase;

    uint penalty=0;

    bytes32 EHRresource_Conv=stringToBytes32(_resource);

    bytes memory action=stringToBytesMemory(_action);

    if (msg.sender==EHRsManager){

    userPKcheck=policies[EHRsresource_Conv][action].userPK;

    userPKcheck=policies[EHRsresource_Conv][action].AreaID;

    PatientIDcheck=policies[EHRsresource_Conv][action].PatientID;

    checkID=userPKcheck && AreaIDcheck && PatientIDcheck;

    if(checkID==true) //Detect authorized access

    emit ReturnAccessResult(msg.sender, "Successful!", true, time, Penalty);

    else //Detect an unauthorized access

    emit ReturnAccessResult(msg.sender, "Failed!", true, time, Penalty);

    }

    }

    }

    submitted by /u/FateTrickster
    [link] [comments]

    Help with resending a pending transaction and nonce

    Posted: 06 Aug 2020 06:57 AM PDT

    Hey guys, I've had a pending eth transaction for 2 days now as I set the gas too low.

    I'm trying to resend the transaction with a higher gwei amount using myetherwallet with my ledger nano connected.

    I need to set a nonce of "0" however I can't seem to find it on the myetherwallet interface.

    https://imgur.com/FRmm2qT

    Any ideas as where it's meant to be? Even if I click on edit on the gwei amount it's not there.

    submitted by /u/RayBrigs
    [link] [comments]

    No comments:

    Post a Comment