In this presentation, we take an unusual approach to introducing Ethereum - we use a blockchain explorer to understand how the ethereum works and explore the underlying concepts such as blocks, transactions, nonce, mining, etc
FreeRADIUS, eduroam logging and ElasticsearchMatthewNewton28
A talk given at the pre-Networkshop46 eduroam FreeRADIUS4 seminar, University of Liverpool, 26 March 2018.
Topics covered:
- eduroam logging requirements (specifically in the UK)
- Suggestions on FreeRADIUS config
- Latency measurements
- Logging topologies
- FreeRADIUS configuration for logging to Elasticsearch, including via logstash, redis, and direct from FreeRADIUS.
Full talk at https://youtu.be/mER_HUMB7l0
FreeRADIUS, eduroam logging and ElasticsearchMatthewNewton28
A talk given at the pre-Networkshop46 eduroam FreeRADIUS4 seminar, University of Liverpool, 26 March 2018.
Topics covered:
- eduroam logging requirements (specifically in the UK)
- Suggestions on FreeRADIUS config
- Latency measurements
- Logging topologies
- FreeRADIUS configuration for logging to Elasticsearch, including via logstash, redis, and direct from FreeRADIUS.
Full talk at https://youtu.be/mER_HUMB7l0
We recently hosted (3/12/18) a GraphQL meetup in Los Angeles where we discussed how at Replicated we made the transition from using REST API’s to using GraphQL Here are the slides from the discussion.
Synapse india dotnet development web approch part 2
SynapseIndia PHP Development,
SynapseIndia Magento Development,
SynapseIndia Reviews,
SynapseIndia Complaints,
SynapseIndia Sharepoint Development,
SynapseIndia dotnet Development
Bitcoin has brought about a true revolution in how we think about money. In one fell stroke it solved the main problems that afflicted previous attempts at a truly digital currency: distributed consensus, double spending, and external attacks. Perhaps more importantly, it provided the first working version of a blockchain or distributed ledger. However, despite their relative simplicity, the underlying concepts on which these technologies are built are not well known and often obscured by hype and technical jargon.
Since the days of Bitcoin’s founding, many other crypto-currencies have been proposed and released. This tutorial will introduce these technologies in an intuitive way for data scientists, explaining their driving algorithms, motivations, and data structures.
We recently hosted (3/12/18) a GraphQL meetup in Los Angeles where we discussed how at Replicated we made the transition from using REST API’s to using GraphQL Here are the slides from the discussion.
Synapse india dotnet development web approch part 2
SynapseIndia PHP Development,
SynapseIndia Magento Development,
SynapseIndia Reviews,
SynapseIndia Complaints,
SynapseIndia Sharepoint Development,
SynapseIndia dotnet Development
Bitcoin has brought about a true revolution in how we think about money. In one fell stroke it solved the main problems that afflicted previous attempts at a truly digital currency: distributed consensus, double spending, and external attacks. Perhaps more importantly, it provided the first working version of a blockchain or distributed ledger. However, despite their relative simplicity, the underlying concepts on which these technologies are built are not well known and often obscured by hype and technical jargon.
Since the days of Bitcoin’s founding, many other crypto-currencies have been proposed and released. This tutorial will introduce these technologies in an intuitive way for data scientists, explaining their driving algorithms, motivations, and data structures.
“Technical Intro to Blockhain” by Yurijs Pimenovs from Paybis at CryptoCurren...Dace Barone
He will give an introduction talk about Blockchain technology technical aspects like cryptography, protocols, APIs and scripting with focus on explaining how Bitcoin and other blockchain works and what they consist of.
Yurijs is a Chief Technical Officer at Paybis, blogger at coinside.ru , blockchain enthusiast since 2011.
HASHED LOUNGE Presents: OpenST Mosaic - Scaling blockchain economies to billi...OST | Open Simple Token
OST | Open Simple Token founders Jason Goldberg and Benjamin Bollen present at HASHED in Seoul, South Korea, on:
- Blockchain economies in historical context
- Barriers to mass adoption of blockchain
- The OpenST Mosaic Protocol for scaling blockchain economies on-chain to billions of users
14 Jan17- Nullmeets -Blockchain concept decoded by Ninad SarangNinad Sarang
Introduction to Blockchain and Bitcoin technologies
Things we will cover,
* What is TRANSACTION ?
* BlockChain !!!……Never heard what is that??
* The BTC Aka BitCoins
* Who discovered?
* How it works?
* Advantages & Disadvantages
* Applications
OpenST Mosaic Protocol introduced at ETH Berlin: Running meta-blockchains on ...OST | Open Simple Token
OST Chief Blockchain Scientist Benjamin Bollen presents OpenST Mosaic Protocol for the first time at ETH Berlin, 7 September, 2018.
OpenST Mosaic is a protocol for scaling DApps on Ethereum to billions of users. While much of the scalability work on Ethereum is focused on off-chain solutions or preparing for ETH v2.0 in several years, Mosaic is token-sharding at layer2 that will work right now on ETH v1.0 (and later ETH v2.0).
OpenST Mosaic is a consensus protocol to run meta-blockchains on top of Ethereum.
Each meta-blockchain runs in parallel and injects an additional state space into Ethereum.
Each meta-blockchain is secured by Ethereum with an open, staked validator set.
All transactions on meta-blockchains are asynchronously finalised and committed onto Ethereum.
Mosaic has a message-passing protocol between Ethereum and meta-blockchains (later directly between meta-blockchains).
Basics you need to know about Solidity and how it works. Learn the simple way of building a smart contract in Solidity. Tools that can be used with Solidity.
In this session, we will take a deep-dive into the DevOps process that comes with Azure Machine Learning service, a cloud service that you can use to track as you build, train, deploy and manage models. We zoom into how the data science process can be made traceable and deploy the model with Azure DevOps to a Kubernetes cluster.
At the end of this session, you will have a good grasp of the technological building blocks of Azure machine learning services and can bring a machine learning project safely into production.
When it comes to microservice architecture, sometimes all you wanted is to perform cross cutting concerns ( logging, authentication , caching, CORS, Routing, load balancing , exception handling , tracing, resiliency etc..) and also there might be a scenario where you wanted to perform certain manipulations on your request payload before hitting into your actual handler. And this should not be a repetitive code in each of the services , so all you might need is a single place to orchestrate all these concerns and that is where Middleware comes into the picture. In the demo I will be covering how to orchestrate these cross cutting concerns by using Azure functions as a Serverless model.
In this talk, we will start with some introduction to Azure Functions, its triggers and bindings. Later we will build a serverless solution to solve a problem statement by using different triggers and bindings of Azure Functions.
Language to be used: C# and IDE - Visual Studio 2019 Community Edition"
In this workshop, you will understand how Azure DevOps Services helps you scale DevOps adoption strategies in enterprise. We will explore various feature and services that can enable you to implement various DevOps practices starting from planning, version control, CI & CD , Dependency Management and Test planning.
In this session, we will understand how to create your first pipeline and build an environment to restore dependencies and how to run tests in Azure DevOps followed by building an image and pushing it to container registry.
In this session, we will discuss a use case where we need to quickly develop web and mobile front end applications which are using several different frameworks, hosting options, and complex integrations between systems under the hood. Let’s see how we can leverage serverless technologies (Azure Functions and logic apps) and Low Code/No code platform to achieve the goal. During the session we will go though the code followed by a demonstration.
CREATING REAL TIME DASHBOARD WITH BLAZOR, AZURE FUNCTION COSMOS DB AN AZURE S...CodeOps Technologies LLP
In this talk people will get to know how we can use change feed feature of Cosmos DB and use azure functions and signal or service to develop a real time dashboard system
Imagine a scenario, where you can launch a video call or chat with an advisor, agent, or clinician in just one-click. We will explore application patterns that will enable you to write event-driven, resilient and highly scalable applications with Functions that too with power of engaging communication experience at scale. During the session, we will go through the use case along with code walkthrough and demonstration.
We will walk through the exploration, training and serving of a machine learning model by leveraging Kubeflow's main components. We will use Jupyter notebooks on the cluster to train the model and then introduce Kubeflow Pipelines to chain all the steps together, to automate the entire process.
It is difficult to deploy interloop Kubernetes development in current state. Know these open-source projects that can save us from the burden of various tools and help in deploying microservices on Kubernetes cluster without saving secrets in a file.
Must Know Azure Kubernetes Best Practices And Features For Better Resiliency ...CodeOps Technologies LLP
Running day-1 Ops on your Kubernetes is somewhat easy, but it is quite daunting to manage day two challenges. Learn about AKS best practices for your cloud-native applications so that you can avoid blow up your workloads.
Prometheus is a popular open source metric monitoring solution and Azure Monitor provides a seamless onboarding experience to collect Prometheus metrics. Learn how to configure scraping of Prometheus metrics with Azure Monitor for containers running in AKS cluster.
What if you could combine Trello, GitLab, JIRA, Calendar, Slack, Confluence, and more - all together into one solution?
Yes, we are talking about Space - the latest tool from JetBrains famous for its developer productivity-enhancing tools (esp. IntelliJ IDEA).
Here we have explained about JetBrains' space and its functionalities.
This talk will serve as a practical introduction to Distributed Tracing. We will see how we can make best use of open source distributed tracing platforms like Hypertrace with Azure and find the root cause of problems and predict issues in our critical business applications beforehand.
This talk serves as a practical introduction to Distributed Tracing. We will see how we can make best use of open source distributed tracing platforms like Hypertrace with Azure and find the root cause of problems and predict issues in our critical business applications beforehand.
Presentation part of Open Source Days on 30 Oct - ossdays.konfhub.com
Enhancing Research Orchestration Capabilities at ORNL.pdfGlobus
Cross-facility research orchestration comes with ever-changing constraints regarding the availability and suitability of various compute and data resources. In short, a flexible data and processing fabric is needed to enable the dynamic redirection of data and compute tasks throughout the lifecycle of an experiment. In this talk, we illustrate how we easily leveraged Globus services to instrument the ACE research testbed at the Oak Ridge Leadership Computing Facility with flexible data and task orchestration capabilities.
Code reviews are vital for ensuring good code quality. They serve as one of our last lines of defense against bugs and subpar code reaching production.
Yet, they often turn into annoying tasks riddled with frustration, hostility, unclear feedback and lack of standards. How can we improve this crucial process?
In this session we will cover:
- The Art of Effective Code Reviews
- Streamlining the Review Process
- Elevating Reviews with Automated Tools
By the end of this presentation, you'll have the knowledge on how to organize and improve your code review proces
Navigating the Metaverse: A Journey into Virtual Evolution"Donna Lenk
Join us for an exploration of the Metaverse's evolution, where innovation meets imagination. Discover new dimensions of virtual events, engage with thought-provoking discussions, and witness the transformative power of digital realms."
May Marketo Masterclass, London MUG May 22 2024.pdfAdele Miller
Can't make Adobe Summit in Vegas? No sweat because the EMEA Marketo Engage Champions are coming to London to share their Summit sessions, insights and more!
This is a MUG with a twist you don't want to miss.
Globus Compute wth IRI Workflows - GlobusWorld 2024Globus
As part of the DOE Integrated Research Infrastructure (IRI) program, NERSC at Lawrence Berkeley National Lab and ALCF at Argonne National Lab are working closely with General Atomics on accelerating the computing requirements of the DIII-D experiment. As part of the work the team is investigating ways to speedup the time to solution for many different parts of the DIII-D workflow including how they run jobs on HPC systems. One of these routes is looking at Globus Compute as a way to replace the current method for managing tasks and we describe a brief proof of concept showing how Globus Compute could help to schedule jobs and be a tool to connect compute at different facilities.
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...Shahin Sheidaei
Games are powerful teaching tools, fostering hands-on engagement and fun. But they require careful consideration to succeed. Join me to explore factors in running and selecting games, ensuring they serve as effective teaching tools. Learn to maintain focus on learning objectives while playing, and how to measure the ROI of gaming in education. Discover strategies for pitching gaming to leadership. This session offers insights, tips, and examples for coaches, team leads, and enterprise leaders seeking to teach from simple to complex concepts.
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteGoogle
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
👉👉 Click Here To Get More Info 👇👇
https://sumonreview.com/ai-pilot-review/
AI Pilot Review: Key Features
✅Deploy AI expert bots in Any Niche With Just A Click
✅With one keyword, generate complete funnels, websites, landing pages, and more.
✅More than 85 AI features are included in the AI pilot.
✅No setup or configuration; use your voice (like Siri) to do whatever you want.
✅You Can Use AI Pilot To Create your version of AI Pilot And Charge People For It…
✅ZERO Manual Work With AI Pilot. Never write, Design, Or Code Again.
✅ZERO Limits On Features Or Usages
✅Use Our AI-powered Traffic To Get Hundreds Of Customers
✅No Complicated Setup: Get Up And Running In 2 Minutes
✅99.99% Up-Time Guaranteed
✅30 Days Money-Back Guarantee
✅ZERO Upfront Cost
See My Other Reviews Article:
(1) TubeTrivia AI Review: https://sumonreview.com/tubetrivia-ai-review
(2) SocioWave Review: https://sumonreview.com/sociowave-review
(3) AI Partner & Profit Review: https://sumonreview.com/ai-partner-profit-review
(4) AI Ebook Suite Review: https://sumonreview.com/ai-ebook-suite-review
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxrickgrimesss22
Discover the essential features to incorporate in your Winzo clone app to boost business growth, enhance user engagement, and drive revenue. Learn how to create a compelling gaming experience that stands out in the competitive market.
Understanding Globus Data Transfers with NetSageGlobus
NetSage is an open privacy-aware network measurement, analysis, and visualization service designed to help end-users visualize and reason about large data transfers. NetSage traditionally has used a combination of passive measurements, including SNMP and flow data, as well as active measurements, mainly perfSONAR, to provide longitudinal network performance data visualization. It has been deployed by dozens of networks world wide, and is supported domestically by the Engagement and Performance Operations Center (EPOC), NSF #2328479. We have recently expanded the NetSage data sources to include logs for Globus data transfers, following the same privacy-preserving approach as for Flow data. Using the logs for the Texas Advanced Computing Center (TACC) as an example, this talk will walk through several different example use cases that NetSage can answer, including: Who is using Globus to share data with my institution, and what kind of performance are they able to achieve? How many transfers has Globus supported for us? Which sites are we sharing the most data with, and how is that changing over time? How is my site using Globus to move data internally, and what kind of performance do we see for those transfers? What percentage of data transfers at my institution used Globus, and how did the overall data transfer performance compare to the Globus users?
Top 7 Unique WhatsApp API Benefits | Saudi ArabiaYara Milbes
Discover the transformative power of the WhatsApp API in our latest SlideShare presentation, "Top 7 Unique WhatsApp API Benefits." In today's fast-paced digital era, effective communication is crucial for both personal and professional success. Whether you're a small business looking to enhance customer interactions or an individual seeking seamless communication with loved ones, the WhatsApp API offers robust capabilities that can significantly elevate your experience.
In this presentation, we delve into the top 7 distinctive benefits of the WhatsApp API, provided by the leading WhatsApp API service provider in Saudi Arabia. Learn how to streamline customer support, automate notifications, leverage rich media messaging, run scalable marketing campaigns, integrate secure payments, synchronize with CRM systems, and ensure enhanced security and privacy.
Check out the webinar slides to learn more about how XfilesPro transforms Salesforce document management by leveraging its world-class applications. For more details, please connect with sales@xfilespro.com
If you want to watch the on-demand webinar, please click here: https://www.xfilespro.com/webinars/salesforce-document-management-2-0-smarter-faster-better/
Graspan: A Big Data System for Big Code AnalysisAftab Hussain
We built a disk-based parallel graph system, Graspan, that uses a novel edge-pair centric computation model to compute dynamic transitive closures on very large program graphs.
We implement context-sensitive pointer/alias and dataflow analyses on Graspan. An evaluation of these analyses on large codebases such as Linux shows that their Graspan implementations scale to millions of lines of code and are much simpler than their original implementations.
These analyses were used to augment the existing checkers; these augmented checkers found 132 new NULL pointer bugs and 1308 unnecessary NULL tests in Linux 4.4.0-rc5, PostgreSQL 8.3.9, and Apache httpd 2.2.18.
- Accepted in ASPLOS ‘17, Xi’an, China.
- Featured in the tutorial, Systemized Program Analyses: A Big Data Perspective on Static Analysis Scalability, ASPLOS ‘17.
- Invited for presentation at SoCal PLS ‘16.
- Invited for poster presentation at PLDI SRC ‘16.
How Recreation Management Software Can Streamline Your Operations.pptxwottaspaceseo
Recreation management software streamlines operations by automating key tasks such as scheduling, registration, and payment processing, reducing manual workload and errors. It provides centralized management of facilities, classes, and events, ensuring efficient resource allocation and facility usage. The software offers user-friendly online portals for easy access to bookings and program information, enhancing customer experience. Real-time reporting and data analytics deliver insights into attendance and preferences, aiding in strategic decision-making. Additionally, effective communication tools keep participants and staff informed with timely updates. Overall, recreation management software enhances efficiency, improves service delivery, and boosts customer satisfaction.
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns
Unlocking Business Potential: Tailored Technology Solutions by Prosigns
Discover how Prosigns, a leading technology solutions provider, partners with businesses to drive innovation and success. Our presentation showcases our comprehensive range of services, including custom software development, web and mobile app development, AI & ML solutions, blockchain integration, DevOps services, and Microsoft Dynamics 365 support.
Custom Software Development: Prosigns specializes in creating bespoke software solutions that cater to your unique business needs. Our team of experts works closely with you to understand your requirements and deliver tailor-made software that enhances efficiency and drives growth.
Web and Mobile App Development: From responsive websites to intuitive mobile applications, Prosigns develops cutting-edge solutions that engage users and deliver seamless experiences across devices.
AI & ML Solutions: Harnessing the power of Artificial Intelligence and Machine Learning, Prosigns provides smart solutions that automate processes, provide valuable insights, and drive informed decision-making.
Blockchain Integration: Prosigns offers comprehensive blockchain solutions, including development, integration, and consulting services, enabling businesses to leverage blockchain technology for enhanced security, transparency, and efficiency.
DevOps Services: Prosigns' DevOps services streamline development and operations processes, ensuring faster and more reliable software delivery through automation and continuous integration.
Microsoft Dynamics 365 Support: Prosigns provides comprehensive support and maintenance services for Microsoft Dynamics 365, ensuring your system is always up-to-date, secure, and running smoothly.
Learn how our collaborative approach and dedication to excellence help businesses achieve their goals and stay ahead in today's digital landscape. From concept to deployment, Prosigns is your trusted partner for transforming ideas into reality and unlocking the full potential of your business.
Join us on a journey of innovation and growth. Let's partner for success with Prosigns.
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisGlobus
JASMIN is the UK’s high-performance data analysis platform for environmental science, operated by STFC on behalf of the UK Natural Environment Research Council (NERC). In addition to its role in hosting the CEDA Archive (NERC’s long-term repository for climate, atmospheric science & Earth observation data in the UK), JASMIN provides a collaborative platform to a community of around 2,000 scientists in the UK and beyond, providing nearly 400 environmental science projects with working space, compute resources and tools to facilitate their work. High-performance data transfer into and out of JASMIN has always been a key feature, with many scientists bringing model outputs from supercomputers elsewhere in the UK, to analyse against observational or other model data in the CEDA Archive. A growing number of JASMIN users are now realising the benefits of using the Globus service to provide reliable and efficient data movement and other tasks in this and other contexts. Further use cases involve long-distance (intercontinental) transfers to and from JASMIN, and collecting results from a mobile atmospheric radar system, pushing data to JASMIN via a lightweight Globus deployment. We provide details of how Globus fits into our current infrastructure, our experience of the recent migration to GCSv5.4, and of our interest in developing use of the wider ecosystem of Globus services for the benefit of our user community.
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...Juraj Vysvader
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I didn't get rich from it but it did have 63K downloads (powered possible tens of thousands of websites).
Listen to the keynote address and hear about the latest developments from Rachana Ananthakrishnan and Ian Foster who review the updates to the Globus Platform and Service, and the relevance of Globus to the scientific community as an automation platform to accelerate scientific discovery.
4. What did we observe?
❖ “Ethereum” is a blockchain
❖ “Ether” is the currency (crypto-currency) - ETH
❖ There are “blocks” and “transactions”
❖ The latest block added was 5916712
❖ There are 265.09 M transactions so far
6. What did we observe?
❖ Current market cap is USD 47 billions
❖ Awesome for something in 3 years (initial release was in 30 July
2015)
❖ The last block was added 14.5 seconds back
❖ That’s typical of the rate in which blocks are added
❖ The transactions per second is 5.2
❖ That’s pathetic in financial industry terms in which a millions
transactions per second is not a big deal
❖ We’ll discuss “Hash Rate” and “Network Difficulty” a bit later
8. What did we observe?
❖ Every block is sequentially numbered
❖ Starting from zero, which is a special “genesis block”
❖ Each block has many transactions
❖ Not fixed number with wide variations - e.g., one was 19 and
another one was 104
❖ There are different “miners” - like “Ethermine” and “f2pool_2”
here
❖ And they are rewarded with Ethers (typically around 4 ethers)
9. Let’s zoom in for more details
https://etherscan.io/blocks
The Nth
block
How old is
the block?
How many transactions
are in this block?
How many “uncles”
for this block?
Who was that lucky
miner to get the ethers?
How many Ethers
was the reward to
the miner?
How much gas
was consumed?
What was the
maximum gas
allowed?
How much was the
average gas price per
transaction?
10. Let’s look at an actual block
How many
transactions are
there in this
block?
What is the hash
value of this
block? (256 bits)
Pointer (hash) to
the previous
block
What is the
name and
address of the
successful
miner?
The size of the
block in bytes
Proof-of-work
value
How many
ethers were
rewarded to the
successful
miner?
11. Let’s look a few actual transactions
Hashes of the
transactions in
this block
All these transactions
belong to the same block
(mined at the same time)
Addresses of the
transaction initiators
This is a Ether currency
transaction (to this
recipient address)
These three are
transactions to
contract addresses
Every transaction
(transferring ether or to
contract and even failed
ones) costs money (its all
money, honey!)
This is a failed
transaction (Log says:
“Error encountered
during contract
execution [Out of gas])”
12. Let’s look at an actual transaction
The hash code of
the transaction
(256 bites)
The transaction
is part of this
block
When did this
transaction
happen?
The source
address that
initiated this
currency transfer
transaction
How much Ether
was transferred
to the recipient?
What was the
gas limit and
how much was
consumed?
The money was
sent to this address
What much did the
sender have to shell
out to make this
transfer?
19. It’s all public info!
❖ With just the address, anyone can view the balance,
number of transactions, to which account the ether came
in or went out, etc.
❖ But only if you own the account, you can perform the
transactions ;-)
❖ Transactions could be to other accounts or to contracts
❖ There could be “token transfers” as well - we’ll discuss
tokens later
22. “Hash” - fingerprint of data
"Priyanka Chopra (Piggy Chops)"
'ee457b98565f0c6f6b013acab80ea02dfa80e7e8'
SHA1
23. Using SHA-1 in Python
>>> import hashlib
>>> text = b"Priyanka Chopra (Piggy Chops)"
>>> hashlib.sha1(text).hexdigest()
'ee457b98565f0c6f6b013acab80ea02dfa80e7e8'
>>> text = b"Deepika Padukone (Deepi)"
>>> hashlib.sha1(text).hexdigest()
‘4efdf9172c4d3fa56540466f8c8a371a45e472fc’
>>> len('4efdf9172c4d3fa56540466f8c8a371a45e472fc')
40
>>> len('4efdf9172c4d3fa56540466f8c8a371a45e472fc') * 4
160
24. Using SHA-3 in Python
>>> import hashlib
>>> text = b"Deepika Padukone (Deepi)"
>>> hashlib.sha3_256(text).hexdigest()
'6229691c1f27cb6b9d4bce8b87ca1a3f0521cdc4aaff1b572be5c400946af29d'
>>> len(_)
64
>>> _ * 4
256
‘Ethereum's development coincided with the development of the SHA3
standard, and the standards process made a late change in the padding of
the finalized hash algorithm, so that Ethereum's "sha3_256" and "sha3_512"
hashes are not standard sha3 hashes, but a variant often referred to as
"Keccak-256" and "Keccak-512" in other contexts.’
- From https://github.com/ethereum/wiki/wiki/Ethash
25. For given text, hex is same!
>>> import hashlib
>>> text = b"Priyanka Chopra (Piggy Chops)"
>>> hashlib.sha1(text).hexdigest()
‘ee457b98565f0c6f6b013acab80ea02dfa80e7e8'
>>> anothertext = b"Priyanka Chopra (Piggy Chops)"
>>> hashlib.sha1(anothertext).hexdigest()
‘ee457b98565f0c6f6b013acab80ea02dfa80e7e8'
>>> variationtext = b"Priyanka Chopra"
>>> hashlib.sha1(variationtext).hexdigest()
‘0a6b5f3111ba3bcc87445942ec2bfcbe2dc28644'
http://www.sha1-online.com/
28. Programmatic account creation
$ cat createacct.js
const ethers = require('ethers');
var wallet = ethers.Wallet.createRandom();
// var privateKey = "0x0123456789012345678901234567890123456789012345678901234567890123";
// var wallet = new ethers.Wallet(random);
console.log(wallet);
$ node createacct.js
Wallet {
privateKey:
'0xf10107a2dd4e0901374d93324a59ade40512d7c946746cdd9b24dc75ceba81a1',
provider: [Getter/Setter],
defaultGasLimit: [Getter/Setter],
address: '0xCbd98A04812e824fC481e6244A3D776c0cA8Ef4f',
sign: [Function],
mnemonic:
'field crop small food shoe design chronic push fox lazy keep clinic',
path: 'm/44'/60'/0'/0/0' }
$
29. Programmatic ether transfer
tiny.cc/ethtransfer
// we are using .env file for configuration details (i.e., from & to account addresses & the
private key for the from address)
require('dotenv').config()
// we are only using the 'ethers' module for transferring ether programmatically
const ethers = require('ethers');
const providers = ethers.providers;
// we are currenly using rinkeby test network; change it to mainnet for real transactions (and
improve this code before you do that ;-))
const network = 'rinkeby';
const provider = providers.getDefaultProvider(network);
var address = process.env.FROM_ADDRESS
console.log(`Using the given from and to addresses & the private key for the from address for $
{network} network`);
// first retrive the account balance (you cannot transfer if you have no ether or less ether than
the transfer amount!)
const balance = provider.getBalance(address).then(function(balance) {
var etherString = ethers.utils.formatEther(balance);
console.log(`The balance in your account is: ${etherString}`);
return etherString;
});
30. Programmatic ether transfer
tiny.cc/ethtransfer
const privateKey = process.env.PRIVATE_KEY
const wallet = new ethers.Wallet(privateKey);
wallet.provider = provider;
// how much ether to transfer
const amountToTransfer = "0.01";
// create a transaction object with the to address and the amount of ether to be transferred
var transaction = {
to: process.env.TO_ADDRESS,
value: ethers.utils.parseEther(amountToTransfer)
};
// get the current estimate for the amount of Gas required for performing the transaction and set that as the gas limit as well
const estimateGasPromise = wallet.estimateGas(transaction);
estimateGasPromise.then(function(gasEstimate) {
console.log(`The estimated gast for performing the transaction is: ${gasEstimate.toString()}`);
console.log(`Keeping the gas limit also the same: ${gasEstimate.toString()}`);
transaction.gasLimit = gasEstimate;
// that's it! do the transaction
var sendTransactionPromise = wallet.sendTransaction(transaction);
// if the transaction succeeds, you'll get here with the transaction hash!
sendTransactionPromise.then(function(transactionHash) {
console.log(`Transaction successful!!! `);
console.log(`The transaction hash is: ${transactionHash.hash}`);
// go to this URL to check more details about the transaction
console.log(`Etherscan transaction URL for complete details: https://${network}.etherscan.io/tx/${transactionHash.hash}`);
});
});
// done!
31. Programmatic ether transfer
tiny.cc/ethtransfer
$ node working.js
Using the given from and to addresses & the private key for the from address
for rinkeby network
The balance in your account is: 2.979958
The estimated gast for performing the transaction is: 21000
Keeping the gas limit also the same: 21000
Transaction successful!!!
The transaction hash is:
0xd08f20663a1c957490ca1e3e748db7bf1e0e65959c58ad7d608bae93a75c47fd
Etherscan transaction URL for complete details: https://rinkeby.etherscan.io/
tx/0xd08f20663a1c957490ca1e3e748db7bf1e0e65959c58ad7d608bae93a75c47fd