sui-axelar's People
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.
[architecture] Messaging protocol separation
If possible, we should try and separate cryptography and deserialization bits from the messaging protocol. That would boost readability and help isolate pieces.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.