Giter VIP home page Giter VIP logo

sui-axelar's People

Contributors

damirka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sui-axelar's Issues

Ecrecover flag needs to be normalized

In https://github.com/MystenLabs/sui-axelar/blob/main/presets/index.js#L92 we directly pin v=0 (last byte of signature) which is not technically correct and can be confusing. It works for the current example because it happened to be v==0.

Various partners use this repo as a template and they thought v should always be zero. We should add the logic to compute v according to https://tech.mystenlabs.com/cryptography-in-sui-cross-chain-signature-verification/

the algorithm is:

// Compute v = 0 or 1.
   let v = vector::borrow_mut(&mut signature, 64);
   if (*v == 27) {
       *v = 0;
   } else if (*v == 28) {
       *v = 1;
   } else if (*v > 35) {
       *v = (*v - 1) % 2;
   };

[examples] Create a token bridge example

The schema has already been worked through with addition of OTW.
Create an AxelarBridge application that would allow third party currencies to be registered in the bridge. The bridge itself will hold a channel and be a separate GMP application.

[examples] Create a Counter example

The simplest of all - wrap a Channel with permission to reset counter. Once message is delivered - act on behalf of the admin and reset. Basic bump can be performed by any party on Sui.

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.