This document provides some ideas on how someone fairly easily could build the basic blocks for a debugger using geth.
The tracer interface defines four methods that a 'tracer' needs to implement:
This document provides some ideas on how someone fairly easily could build the basic blocks for a debugger using geth.
The tracer interface defines four methods that a 'tracer' needs to implement:
contract AccountProxy { | |
event Fwded(address indexed to, uint256 value, bytes calldata, bool succeeded); | |
// must be implemented by super contract | |
function canFwd(address who, address to, uint256 value, bytes calldata) public view returns (bool); | |
function () payable {} // allow to deposit eth | |
function fwd(address to, uint256 value, bytes calldata) external { | |
require(canFwd(msg.sender, to, value, calldata)); |
The following list of questions was taken from https://www.reddit.com/r/ethereum/comments/72reba/do_you_have_deep_questions_about_solidity_or_the/
Question by /u/drcode
I won't talk about low-level opcodes here because of the brevity of the answer. In general, there are four ways functions can be called in Solidity:
This is based on Poelstra's ideas as summarised in https://download.wpsoftware.net/bitcoin/wizardry/mw-slides/2017-05-milan-meetup/slides.pdf ; also see the earlier outline in https://lists.launchpad.net/mimblewimble/msg00086.html.
Note that the details here are just my thoughts, so if you come to this randomly, don't take it as some kind of well established protocol!
We'll use ||
for concatenation and capitals for elliptic curve points and lower case letters for scalars.
package main | |
import ( | |
"fmt" | |
"log" | |
"strconv" | |
"github.com/miekg/dns" | |
) |
// Created by Chris Eidhof on 04-01-16. | |
// Copyright © 2016 Chris Eidhof. All rights reserved. | |
// | |
// Large parts copy/pasted from https://github.com/Eonil/TCPIPSocket.Swift | |
import Foundation | |
struct TCPIPSocketAddress { | |
init(_ a:UInt8, _ b:UInt8, _ c:UInt8, _ d:UInt8) { | |
let a1 = UInt32(a) << 24 |
ffmpeg -i inputfile.wav -ab 320k outputfile.mp3 |
Twelve Go Best Practices
Francesc Campoy Flores Gopher at Google @francesc http://campoy.cat/+
Add remote2
as a remote
$ git remote -v
remote2 [email protected]:repo2.git (fetch)
remote2 [email protected]:repo2.git (push)
origin [email protected]:repo.git (fetch)
origin [email protected]:repo.git (push)