TODO: Write a project description
TODO: Describe the installation process
=== Instalacion de geth ==================================== | |
sudo apt-get install software-properties-common | |
sudo add-apt-repository -y ppa:ethereum/ethereum | |
sudo add-apt-repository -y ppa:ethereum/ethereum-dev | |
sudo apt-get update |
pragma Solidity ^0.4.2; | |
contract Sample { | |
//state variables | |
uint256 data; | |
address owner; | |
//event definition | |
event logData(uint256 dataToLog); |
{ | |
"config": { | |
"chainId": 15, | |
"homesteadBlock": 0, | |
"eip155Block": 0, | |
"eip158Block": 0 | |
}, | |
"gasLimit": "210000", | |
"difficulty": "20000", | |
"alloc": { |
=== Crear una nueva cuenta en geth ==================================== | |
geth --datadir ~/privnet account new | |
=== Iniciar consola de JS en geth ===================================== | |
geth attach /home/cham0/privnet/geth.ipc | |
let configs = { | |
"A": ["B", "D"], | |
"B": ["D"], | |
"E": ["D"], | |
"F": ["E", "A"], | |
"C": [], | |
"D": [] | |
} | |
const edges = {}; |
require 'btcruby' | |
require 'bitcoin' | |
require 'active_support' | |
require 'active_support/core_ext' | |
require 'ffi' | |
# Creation of Witness Script: here a 2-of-2 multisig as an example | |
@public_key = "02530c548d402670b13ad8887ff99c294e67fc18097d236d57880c69261b42def7" | |
@user_key = BTC::Key.new(public_key:BTC.from_hex(@public_key)) |
pragma solidity ^0.5.16; | |
pragma experimental ABIEncoderV2; | |
contract TransactionBatcher { | |
function batch(address payable[] memory to, uint[] memory value, bytes[] memory data) payable public { | |
uint cnt = to.length; | |
require(cnt == value.length && cnt == data.length, "Invalid input length"); | |
uint currValue = msg.value; | |
When you create a npm package, remember it might be used in a browser or a server, or even a command line utility… For each package you create, please pay attention at what it will be used for:
When you create a npm package, remember it might be used in a browser or a server, or even a command line utility… For each package you create, please pay attention at what it will be used for: