GithubHelp home page GithubHelp logo

Comments (6)

BrettCleary avatar BrettCleary commented on May 31, 2024 1

I will use the formulas outlined here https://medium.com/metamask/eip712-is-coming-what-to-expect-and-how-to-use-it-bb92fd1a7a26 along with the bitcoin core elliptic curve C library https://github.com/bitcoin-core/secp256k1 for ecdsa signature verification and https://github.com/nayuki/Bitcoin-Cryptography-Library/blob/master/cpp/Keccak256.cpp for the keccack256 hash used on the typed data prior to verification.

This way, the game dev does not have to deploy a smart contract and we have no external dependencies/infrastructure to maintain. These libraries are optimized and well maintained too. It'll be very fast.

This also prevents us from dealing with MITM attacks on external http calls so security is better too.

from hyperplay-desktop-client.

jacobc-eth avatar jacobc-eth commented on May 31, 2024

Outstanding:

Add signature method using SignTypedData v3

from hyperplay-desktop-client.

BrettCleary avatar BrettCleary commented on May 31, 2024

Still investigating options as to where to verify the signature

from hyperplay-desktop-client.

BrettCleary avatar BrettCleary commented on May 31, 2024

Work in progress here: G7DAO/web3.unreal#1.

from hyperplay-desktop-client.

BrettCleary avatar BrettCleary commented on May 31, 2024

Investigating smart contract wallet signing compatibility (e.g. https://eips.ethereum.org/EIPS/eip-1271) as well

from hyperplay-desktop-client.

BrettCleary avatar BrettCleary commented on May 31, 2024

This is finished and merged with an example in the FPS_Demo uproject. We can't verify smart contract wallet signatures but I'm not sure if we can request them anyways. Something to revisit in the future.

from hyperplay-desktop-client.

Related Issues (20)

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.