Giter Club home page Giter Club logo

analog-gmp's Introduction

Analog's Contracts

This repository contains all the necessary ingredients for successful cross-chain development utilizing the Analog General Message Passing protocol.

Dependencies

This project uses Forge Ethereum testing framework (like Truffle, Hardhat and DappTools). Install instructions: https://book.getfoundry.sh/

Usage

Build

$ forge build

Test

$ forge test

Format

$ forge fmt

Gas Snapshots

$ forge snapshot

License

Analog's Contracts is released under the MIT License.

analog-gmp's People

Contributors

lohann avatar 0x1100010010 avatar

Stargazers

 avatar Gr3y avatar Deadlock avatar

Watchers

 avatar  avatar  avatar

analog-gmp's Issues

Create a detailed Video walkthrough for GMP

Description

Create a video walkthrough for the general audience interested in understanding GMP mechanisms, clearly distinguishing the differences from other protocols, i.e. smart contract performance improvements, embedded assembly, Gasfee comparison, etc

  • Gateway walkthrough
  • GMP usage exemple

Security Flaw in updateKeys() Function Allows Signature Reuse for Key Re-registration

Description:

There is a critical security issue in the updateKeys() function of the Gateway contract that allows for the reuse of a signature to re-register a revoked key.

Steps to Reproduce:

1.	Register the key “xyz” with signature1.
2.	Revoke the key “xyz” with signature2.
3.	Reuse signature1 to re-register the key “xyz”.

Issue:
The current implementation does not prevent the reuse of the original registration signature (signature1) after the key has been revoked. This allows any user to re-register the key “xyz” with signature1, bypassing the intended revocation.

Proposed Solution:
To fix this issue, the function should keep track of used signatures or include a mechanism that invalidates the old signature once the key is revoked.

Impact:
This flaw could potentially allow unauthorized users to re-register revoked keys, compromising the security and integrity of the key management system.

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.