Code Monkey home page Code Monkey logo

beaconhost's Introduction

the idea is that this is a centralized service that facilitates off-chain oracle fetches for smart contracts.

idea of a customer would be someone doing a merch drop for NFT holders and wants to combine beaconhost with tokenhost to create a side chain for their merch drop, use the beacon chain programming in solidity to ensure that holders have an nft and issue merch tokens on the side chain!

we could have the code live entirely on the sidechain and have the redeem token function issue be issued by the end customer who would make a claim to redeem tokens.

the solidity code would finsih its transaction without issuinga  token but emit an event that beaconchain would pick up. beacon chainw ould make the web3 api request / or some NFT specific request and call a callback with its response!
then that tx can issue tokens for the end client to use for the merch drop.
the client can also use on chain encryption to share their PII to the nft project




alternatively, a query can be made off chain using javascript to get a signed assertion from bacon chain - beacon chain can be used as a signing service.

also it's possible that the developer is able to be their own oracle service and in web3 javascript create a signed assertion that is equivalent of the web3 api. 

the problem is that this would be a server -- so basically token host can do this and offer signed web3 api queries for end users! this could be verified on chain and only require one transaction.

i think that both are interesting


we are going to write a diamond facet that serves as a helper for making simple queries - maybe eth wallet balance is an ok one to start with :) 

we'll want to have time stamps in the callbacks as well and functions can decide how stale things can be

beaconhost's People

Contributors

snissn avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.