<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Digital Bridge on Medium]]></title>
        <description><![CDATA[Stories by Digital Bridge on Medium]]></description>
        <link>https://medium.com/@digitalbridge-io?source=rss-3cbaa71cf498------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*EgZ2lZmG0nvdW8D--ZJieQ.jpeg</url>
            <title>Stories by Digital Bridge on Medium</title>
            <link>https://medium.com/@digitalbridge-io?source=rss-3cbaa71cf498------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 13:06:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@digitalbridge-io/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Example to understand Chainlink Keepers, based on a web3 script]]></title>
            <link>https://digitalbridge-io.medium.com/example-to-understand-chainlink-keepers-based-on-a-web3-script-82e4477ba7b0?source=rss-3cbaa71cf498------2</link>
            <guid isPermaLink="false">https://medium.com/p/82e4477ba7b0</guid>
            <category><![CDATA[keepers]]></category>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[chainlink-keepers]]></category>
            <category><![CDATA[digital-bridge]]></category>
            <category><![CDATA[chain-link]]></category>
            <dc:creator><![CDATA[Digital Bridge]]></dc:creator>
            <pubDate>Wed, 01 Dec 2021 13:46:48 GMT</pubDate>
            <atom:updated>2021-12-03T17:28:59.909Z</atom:updated>
            <content:encoded><![CDATA[<h4>The main idea of this example is to create an auxiliary task called “keeper-simulation” to manually try and adjust the Keeper prior to registration in the keeper network.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H866XTdUXXwEFIntTUkM-Q.jpeg" /></figure><p>To understand what are Chainlink Keepers please read the following docs</p><ul><li><a href="https://docs.chain.link/docs/chainlink-keepers/introduction/">Introduction to Chainlink Keepers</a></li><li><a href="https://docs.chain.link/docs/chainlink-keepers/overview/">Keepers Network Overview</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4oYyufi_zz5Kj9CU.jpg" /></figure><h3>Requirements</h3><ul><li><a href="https://www.npmjs.com/">NPM</a> or <a href="https://yarnpkg.com/">YARN</a></li><li>Chainlink Hardhat Box</li></ul><h3>Installation</h3><pre>git clone -b keeper-simulation-w-web3script <a href="https://github.com/digitalbridgekit/hardhat-starter-kit.git">https://github.com/digitalbridgekit/hardhat-starter-kit.git</a><br>cd hardhat-starter-kit</pre><p>then</p><pre>npm install</pre><p>Or</p><pre>yarn</pre><p>then execute the following</p><pre>cp .env.example .env</pre><h3>Example context</h3><h4>The Counter contract</h4><p>The follow contract implements KeeperCompatibleInterface interface, this interface able the contract to be called by a keeper.</p><pre>pragma solidity ^0.8.7;<br></pre><pre>interface KeeperCompatibleInterface {<br>    function checkUpkeep(bytes calldata checkData) external returns (bool upkeepNeeded, bytes memory performData);<br>    function performUpkeep(bytes calldata performData) external;<br>}</pre><pre>contract Counter is KeeperCompatibleInterface {<br>    /**<br>    * Public counter variable<br>    */<br>    uint public counter;</pre><pre>    /**<br>    * Use an interval in seconds and a timestamp to slow execution of Upkeep<br>    */<br>    uint public immutable interval;<br>    uint public lastTimeStamp;<br>    <br>    constructor(uint updateInterval) public {<br>      interval = updateInterval;<br>      lastTimeStamp = block.timestamp;</pre><pre>      counter = 0;<br>    }</pre><pre>    function checkUpkeep(bytes calldata checkData) external override returns (bool upkeepNeeded, bytes memory performData) {<br>        upkeepNeeded = (block.timestamp - lastTimeStamp) &gt; interval;</pre><pre>        // We don&#39;t use the checkData in this example<br>        // checkData was defined when the Upkeep was registered<br>        performData = checkData;<br>    }</pre><pre>    function performUpkeep(bytes calldata performData) external override {<br>        lastTimeStamp = block.timestamp;<br>        counter = counter + 1;</pre><pre>        // We don&#39;t use the performData in this example<br>    }<br>}</pre><h4>The keeper-simulation task</h4><p>As the Counter contract is defined to be called in external mode, it’s necessary a web3 script to call the Counter contract, simulating a Keeper call.</p><p><a href="https://github.com/digitalbridgekit/hardhat-starter-kit/blob/keeper-simulation-w-web3script/tasks/keeper-simulation/keeper-simulation.js">keeper-simulation.js</a></p><h3>Steps to deploy and test the contract and understand how the Keepers works</h3><h4>The first step is run hardhat as local node</h4><pre>user@host:~/keeper/hardhat-starter-kit$ npx hardhat node<br>Started HTTP and WebSocket JSON-RPC server at <a href="http://127.0.0.1:8545/">http://127.0.0.1:8545/</a></pre><h4>The second step is deploy the contracts</h4><ul><li>In a different terminal execute the following</li></ul><pre>user@host:~/keeper/hardhat-starter-kit$ npx hardhat deploy --network localhost --tags keepers</pre><p>output</p><pre>Compilation finished successfully<br>deploying &quot;Counter&quot; (tx: 0xe74fb4e378f4055540692272da229b22bbbafc07a8589f13118bfdd07d30e51e)...: deployed at 0x8A791620dd6260079BF849Dc5567aDC3F2FdC318 with 342119 gas<br>Run the following command to track the counter updates:<br>npx hardhat read-keepers-counter --contract 0x8A791620dd6260079BF849Dc5567aDC3F2FdC318 --network localhost<br>Run the following command to manually simulate a Keeper call:<br>npx hardhat keeper-simulation --contract 0x8A791620dd6260079BF849Dc5567aDC3F2FdC318 --network localhost<br>----------------------------------------------------</pre><h3>Then to understand how it works</h3><p>The Counter contract has:</p><ul><li>30 seconds as interval value</li><li>The counter it’s initialized in 0</li><li>lastimestamp is initalized with the timestamp of the block when the contract is deployed.</li></ul><p>To read the current state excecute the following</p><pre>user@host:~/keeper/hardhat-starter-kit$ npx hardhat read-keepers-counter --contract 0x8A791620dd6260079BF849Dc5567aDC3F2FdC318 --network localhost</pre><p>output</p><pre>Reading counter from Keepers contract  0x8A791620dd6260079BF849Dc5567aDC3F2FdC318  on network  localhost<br>Last timestamp is:  1638220869<br>Counter is:  0</pre><p>The counter in 0 value implie that the keeper never executed the preformUpkeep function</p><p>Now after more than 30 seconds execute the follow</p><pre>user@host:~/keeper/hardhat-starter-kit$ npx hardhat keeper-simulation --contract 0x8A791620dd6260079BF849Dc5567aDC3F2FdC318 --network localhost</pre><p>output</p><pre>Calling Counter contract simulating a Keeper call  0x8A791620dd6260079BF849Dc5567aDC3F2FdC318  on network  localhost<br>Contract  0x8A791620dd6260079BF849Dc5567aDC3F2FdC318  checkUpkeep:  true<br>Contract  0x8A791620dd6260079BF849Dc5567aDC3F2FdC318  performUpkeep was called. Transaction Hash:  0x6011322d77c46b3181098e305b9ef7cefdb7345b09097d73e791859265613e40</pre><p>As the interval is greater than 30 seconds the checkUpkeep function responds <strong>true</strong> so the performUpkeep function is executed in the same way as for the keeper.</p><p>Now you can read the status again.</p><pre>user@host:~/keeper/hardhat-starter-kit$ npx hardhat read-keepers-counter --contract 0x8A791620dd6260079BF849Dc5567aDC3F2FdC318 --network localhost</pre><p>output</p><pre>Reading counter from Keepers contract  0x8A791620dd6260079BF849Dc5567aDC3F2FdC318  on network  localhost<br>Last timestamp is:  1638220921<br>Counter is:  1</pre><p>You can verify that the counter value was incremented in 1 more and the lasttimestamp changed to the current value too.</p><p>Now you need to wait more than 30 seconds again and execute the contract that simulates the keeper again</p><pre>user@host:~/keeper/hardhat-starter-kit$ npx hardhat keeper-simulation --contract 0x8A791620dd6260079BF849Dc5567aDC3F2FdC318 --network localhost</pre><p>output</p><pre>Calling Counter contract simulating a Keeper call  0x8A791620dd6260079BF849Dc5567aDC3F2FdC318  on network  localhost<br>Contract  0x8A791620dd6260079BF849Dc5567aDC3F2FdC318  checkUpkeep:  true<br>Contract  0x8A791620dd6260079BF849Dc5567aDC3F2FdC318  performUpkeep was called. Transaction Hash:  0x740019915422734e6926879560791818ad8ac61ea5dd020fbb866289f7084a37</pre><p>The result <strong>true</strong> indicates that the performUpkeep was executed again.</p><p>Reading the current Counter values.</p><pre>user@host:~/keeper/hardhat-starter-kit$ npx hardhat read-keepers-counter --contract 0x8A791620dd6260079BF849Dc5567aDC3F2FdC318 --network localhost</pre><p>output</p><pre>Reading counter from Keepers contract  0x8A791620dd6260079BF849Dc5567aDC3F2FdC318  on network  localhost<br>Last timestamp is:  1638220985<br>Counter is:  2</pre><p>The counter increment 1 more its value and the timestamp changed to the new value.</p><p>But if you execute the contract that simulates the keeper again before 30 seconds from the last execution.</p><pre>user@host:~/keeper/hardhat-starter-kit$ npx hardhat keeper-simulation --contract 0x8A791620dd6260079BF849Dc5567aDC3F2FdC318 --network localhost</pre><p>output</p><pre>Calling Counter contract simulating a Keeper call  0x8A791620dd6260079BF849Dc5567aDC3F2FdC318  on network  localhost<br>Contract  0x8A791620dd6260079BF849Dc5567aDC3F2FdC318  checkUpkeep:  false</pre><p>The results of checkUpkeep function is <strong>false</strong> So if you read the Counter values.</p><pre>user@host:~/keeper/hardhat-starter-kit$ npx hardhat read-keepers-counter --contract 0x8A791620dd6260079BF849Dc5567aDC3F2FdC318 --network localhost</pre><p>output</p><pre>Reading counter from Keepers contract  0x8A791620dd6260079BF849Dc5567aDC3F2FdC318  on network  localhost<br>Last timestamp is:  1638220985<br>Counter is:  2</pre><p>The state didn’t change.</p><p>When the contract reaches this testing phase and is adjusted, it can continue the process registering it at <a href="https://keepers.chain.link/">https://keepers.chain.link/</a></p><p>If you want to automate your own contract I suggest to learn <a href="https://hardhat.org/getting-started/">Hardhat</a> . The mainly files that you need to modify are <a href="https://github.com/digitalbridgekit/hardhat-starter-kit/blob/keeper-simulation-w-web3script/contracts/KeepersCounter.sol">KeepersCounter.sol</a> , <a href="https://github.com/digitalbridgekit/hardhat-starter-kit/blob/keeper-simulation-w-web3script/deploy/04_Deploy_KeepersCounter.js">04_Deploy_KeepersCounter.js</a> , <a href="https://github.com/digitalbridgekit/hardhat-starter-kit/blob/keeper-simulation-w-web3script/tasks/keeper-simulation/keeper-simulation.js">keeper-simulation.js</a> and <a href="https://github.com/digitalbridgekit/hardhat-starter-kit/blob/keeper-simulation-w-web3script/tasks/keepers/read-keepers-counter.js">read-keepers-counter.js</a> .</p><p>This is a contribution to the Chainlink Developer Expert Program that we are part of.</p><h3>About Chainlink</h3><p>Chainlink is the industry standard for building, accessing, and selling oracle services needed to power hybrid smart contracts on any blockchain. Chainlink oracle networks provide smart contracts with a way to reliably connect to any external API and leverage secure off-chain computations for enabling feature-rich applications. Chainlink currently secures tens of billions of dollars across DeFi, insurance, gaming, and other major industries, and offers global enterprises and leading data providers a universal gateway to all blockchains.</p><p>Learn more about Chainlink by visiting<a href="https://chain.link/"> chain.link</a> or read the documentation at <a href="http://docs.chain.link/">docs.chain.link</a>. To discuss an integration,<a href="https://chainlinkcommunity.typeform.com/to/OYQO67EF?page=announcement"> reach out to an expert</a>.</p><p><a href="https://chain.link/">Website</a> | <a href="https://twitter.com/chainlink">Twitter</a> |<a href="https://www.reddit.com/r/Chainlink/"> </a><a href="https://discordapp.com/invite/aSK4zew">Discord</a> | <a href="https://www.reddit.com/r/Chainlink/">Reddit</a> | <a href="https://www.youtube.com/channel/UCnjkrlqaWEBSnKZQ71gdyFA">YouTube</a> | <a href="https://t.me/chainlinkofficial">Telegram</a> | <a href="https://blog.chain.link/tag/events/">Events</a> | <a href="https://github.com/smartcontractkit/chainlink">GitHub</a> | <a href="https://feeds.chain.link/">Price Feeds</a> | <a href="https://defi.chain.link/">DeFi</a></p><h3>About Digital Bridge</h3><p>We are building trust digital bridges for business.</p><p>We are Chainlink oracles providers. Digital Bridge is interconnecting Blockchain Networks with external Computer Systems. Providing high quality information for the correct execution of smart contracts as well as communicating the results to external systems.</p><p>Working on back end and middleware development tools for DeFi protocols and blockchain ecosystems.</p><p>To find out more about us<strong> </strong>you can contact us by email to <a href="/service/mailto:hello@digitalbridge.link">hello@digitalbridge.link</a>. Follow us on Twitter <a href="https://twitter.com/DigitalBridgeIO">https://twitter.com/DigitalBridgeIO</a> and social media for future updates:</p><p><a href="https://twitter.com/DigitalBridgeIO">Twitter</a> | <a href="https://www.linkedin.com/company/digital-bridge-io/">LinkedIn</a> | <a href="https://digitalbridge.link/">Web</a> | <a href="https://t.me/DigitalBridge">Telegram</a> | <a href="https://github.com/digitalbridgekit">GitHub</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82e4477ba7b0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Digital Bridge Using Chainlink to Launch a 2FA Oracle for Smart Contracts]]></title>
            <link>https://digitalbridge-io.medium.com/digital-bridge-using-chainlink-to-launch-a-2fa-oracle-for-smart-contracts-abf06ca1cd7a?source=rss-3cbaa71cf498------2</link>
            <guid isPermaLink="false">https://medium.com/p/abf06ca1cd7a</guid>
            <category><![CDATA[smart-contracts]]></category>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[2fa]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[chain-link]]></category>
            <dc:creator><![CDATA[Digital Bridge]]></dc:creator>
            <pubDate>Wed, 04 Nov 2020 12:01:39 GMT</pubDate>
            <atom:updated>2021-10-28T13:57:44.598Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zPFW5Hc9E1x2-i2J9FBkTg.jpeg" /></figure><p>Digital Bridge is excited to announce that we’ve built a two-factor authentication (2FA) oracle for smart contracts using Chainlink’s market-leading oracle technology. Initially set to launch on the Matic Network, projects will be able to use the Digital Bridge Chainlink oracle to integrate 2FA security into the smart contract layer of their applications, further extending the security guarantees they obtain through Chainlink.</p><p>We built Digital Bridge on top of the Chainlink Network because it’s the most secure, reliable, and flexible oracle solution in the market. It’s external adapter framework provided the modularity we required to connect with off-chain 2FA APIs and eventually service a multitude of blockchains beyond Matic. Additionally, it’s a provably secure and time-tested oracle network that is widely adopted throughout the DeFi industry and beyond, currently securing over $4B in user funds for numerous small and large DeFi projects.</p><p>Digital Bridge initially developed the 2FA smart contract solution for the <a href="https://blog.chain.link/showcasing-the-winners-of-the-2020-unitize-hackathon/">Unitize 2020 Hackathon</a>, where it won Chainlink’s Judges Pick Award. Since the hackathon, we’ve expanded on this concept and aim to productize it for use by dApps, node operators, and anyone else wanting to optimize their security.</p><h3>Integrating 2FA Using Chainlink External Adapters</h3><p>For the technical integration, we developed a Chainlink external adapter to read an off-chain, high-availability 2FA API authentication service, as well as built a custom Digital Bridge Chainlink oracle node that relays the secret codes needed to confirm 2FA. We can implement an external adapter using Amazon AWS Lambda, Google Cloud Platform functions, or Docker.</p><p>In order to authenticate the user holding the 2FA private key, a user submits a transaction on-chain containing their ID and the temporary one-time password generated by their authenticator app. A Chainlink node scanning the blockchain then picks up on this transaction and queries an off-chain server (API) to validate the 2FA code’s authenticity. Once the Chainlink node receives a response, it delivers this boolean value on-chain which, if authorized TRUE, then triggers the smart contract to grant authorization to the original user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RHaQk_N0SbK_EJyJjul2ag.jpeg" /><figcaption>Diagram of 2FA for Smart Contracts</figcaption></figure><p>This implementation avoids man-in-the-middle attacks by using a SHA256 hash of the PIN and creating an external adapter to compare them.</p><h3>Smart Contract Security Strategies Using 2FA</h3><p>By enabling smart contracts to get access to 2FA confirmations, users can create a defense-in-depth strategy to further protect user funds within a decentralized application, or a Chainlink node can further enhance the security of its on-chain responses or updates.</p><p>Many users want a second layer of security for their smart contracts. The following cases are examples where added 2FA can increase security:</p><ul><li>Confirm high-value trades or transactions</li><li>Confirm changes to sensitive contract settings</li><li>Temporarily delegate a set of tasks to an employee</li><li>Reconfirmations of security authorization within Apps that employ time-based lockouts</li></ul><p>These are just a few of the many ways smart contract developers will benefit from 2FA, and we are excited to continue building out our Digital Bridge solution to make it available across more blockchains via Chainlink.</p><p>“Chainlink is becoming the standard in secure blockchain middleware connecting blockchains to the real world, with its underlying architecture and codebase supported by sound academic research,” said Digital Bridge co-founder Javier Salomon. “We look forward to building on the Chainlink Network to bring an additional layer of 2FA security to the Chainlink ecosystem in order to further protect user funds at all costs.”</p><p>Link to Chainlink Blog Post “<a href="https://blog.chain.link/2fa-authentication-smart-contracts/">How to Connect a Two-Factor Authentication (2FA) API to a Smart Contract With Chainlink</a>”</p><h4>About Chainlink</h4><p>Chainlink is the most widely used and secure way to power universal smart contracts. With Chainlink, developers can connect any blockchain with high quality data sources from other blockchains as well as real world data. Managed by a global, decentralized community of hundreds of thousands of people, Chainlink is introducing a fairer model for contracts. Its network currently secures billions of dollars in value for smart contracts across the decentralized finance (DeFi), insurance and gaming ecosystems, among others.</p><p>Chainlink is trusted by hundreds of organizations to deliver definitive truth via secure, reliable data feeds. To learn more, visit <a href="https://chain.link/">chain.link</a> and follow <a href="http://www.twitter.com/chainlink">@chainlink</a> on Twitter.</p><p><a href="https://chain.link/">Website</a> | <a href="https://twitter.com/chainlink">Twitter</a> |<a href="https://www.reddit.com/r/Chainlink/"> </a><a href="https://discordapp.com/invite/aSK4zew">Discord</a> | <a href="https://www.reddit.com/r/Chainlink/">Reddit</a> | <a href="https://www.youtube.com/channel/UCnjkrlqaWEBSnKZQ71gdyFA">YouTube</a> | <a href="https://t.me/chainlinkofficial">Telegram</a> | <a href="https://blog.chain.link/tag/events/">Events</a> | <a href="https://github.com/smartcontractkit/chainlink">GitHub</a> | <a href="https://feeds.chain.link/">Price Feeds</a> | <a href="https://defi.chain.link/">DeFi</a></p><h4>About Digital Bridge</h4><p>We are building trust digital bridges for business.</p><p>We are Chainlink oracles providers. Digital Bridge is interconnecting Blockchain Networks with external Computer Systems. Providing high quality information for the correct execution of smart contracts as well as communicating the results to external systems.</p><p>To find out more about us<strong> </strong>and integrate with our decentralised oracle send an email to <a href="/service/mailto:hello@digitalbridge.link">hello@digitalbridge.link</a> or follow us on Twitter and social media for future updates:</p><p><a href="https://twitter.com/DigitalBridgeIO">Twitter</a> | <a href="https://www.linkedin.com/company/digital-bridge-io/">LinkedIn</a> | <a href="https://digitalbridge.link/">Web</a> | <a href="https://t.me/DigitalBridge">Telegram</a> | <a href="https://github.com/digitalbridgekit">GitHub</a></p><h4>About <strong>Google Authenticator</strong></h4><p><a href="https://www.google.com/landing/2step/index.html">Google 2 Steps</a> | <a href="https://tools.ietf.org/html/rfc6238">TOTP protocol</a></p><p>To Install Google Authenticator app on different platforms:</p><p><a href="https://apps.apple.com/es/app/google-authenticator/id388497605">iOS</a> | <a href="https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2">Android</a> | <a href="https://chrome.google.com/webstore/detail/authenticator/bhghoamapcdpbohphigoooaddinpkbai?hl=es">Chrome</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=abf06ca1cd7a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>