It’s an open source Abi which provides interface of common functionalities which are provided by smart contracts. When we add new tokens to Metamask, we can use this Abi to invoke common functionalities of the smart contract.https://github.com/danfinlay/human-standard-token-abi
Proof-of-authority 101
PoA, it’s a very simplistic protocol, where instead of miners racing to find a solution to a difficult problem, authorized signers can at any time at their own discretion create new blocks. The challenges revolve around how to control minting frequency, how to distribute minting load (and opportunity) between the various signers and how to …
Closure in javascript
A closure is the combination of a function and the lexical environment within which that function was declared. This environment consists of any local variables that were in-scope at the time the closure was created. Closures are useful because they let you associate some data (the lexical environment) with a function that operates on that …
MetaMask now supports Ledger Hardware Wallets
Last month, MetaMask released 4.9.0, which included support for Trezor hardware wallets. As we discussed in our blog post, your funds are only as safe as your keys — hardware wallets are a great way to store keys securely offline. We want Ethereum users to be as safe as possible and we don’t want to leave anyone …
Hardware wallet integration emulator
Trezor is a hardware wallet providing advanced security for handling Bitcoin and other cryptocurrencies private keys. Unlike traditional cold storage methods (offline storage or paper wallets), Trezor makes secure payments without exposing your private keys to a potentially compromised computer. See Security philosophy for more info. Trezor is a small single-purpose computer. It is designed to protect your private keys from possible …
Implement download functionality in website by iframe
We can implement download functionality using iframe. If we place iframe in websites and set the url of download source in src attribute of iframe, the source is automatically downloaded to our local PC.
A Complete Guide to Grid
CSS Grid Layout is the most powerful layout system available in CSS. It is a 2-dimensional system, meaning it can handle both columns and rows, unlike flexbox which is largely a 1-dimensional system. You work with Grid Layout by applying CSS rules both to a parent element (which becomes the Grid Container) and to that …
The npm audit command submits a description of the dependencies configured in your package.
Run a security audit SYNOPSIS§ EXAMPLES§ Scan your project for vulnerabilities and automatically install any compatible updates to vulnerable dependencies: Run audit fix without modifying node_modules, but still updating the pkglock: Skip updating devDependencies: Have audit fix install semver-major updates to toplevel dependencies, not just semver-compatible ones: Do a dry run to get an idea of what audit fix will do, and also output install …
Store functions in localStorage
We can only store string data to localStorage and sometimes we need to store methods and invoke later. In order to do this, Javascript provides functionality to stringify methods. Here is an example function. const func = function sum(a, b) { return a + b; } func.toString() returns a string like function sum(a, b) { …