Giter Club home page Giter Club logo

Comments (5)

tony-iqlusion avatar tony-iqlusion commented on July 23, 2024 1

Do you have an actual use case for cosmrs + no_std?

In particular it currently uses eyre for error handling, which does not support no_std.

It would be nice to wait for the stabilization of the Error trait in core before proceeding. I can't say I'm terribly happy with flex-error in tendermint-rs.

from cosmos-rust.

DaviRain-Su avatar DaviRain-Su commented on July 23, 2024 1

I am implement ics06-solomachain-client, that use cosmrs publickey type. I wish cosmrs can implement no-std.

from cosmos-rust.

tony-iqlusion avatar tony-iqlusion commented on July 23, 2024

Adding no_std support is something I don't have time to work on, and ideally it wouldn't require a bunch of compromises on the error types like what happened with tendermint-rs.

What no_std platform are you targeting?

from cosmos-rust.

DaviRain-Su avatar DaviRain-Su commented on July 23, 2024

Oh, there is no specific no-std platform support because I need to use types from cosmrs while implementing the ICS06 solomachine client. I don't think it makes sense to redundantly define which type conversions are needed in ibc-rs.

the error types like what happened with tendermint-rs.

Do you like how errors are handled in ibc-rs?

from cosmos-rust.

dzmitry-lahoda avatar dzmitry-lahoda commented on July 23, 2024

We have CosmWasm on Substrate. Substrate blockchain runtime (big contract) is no_std. We provide precompiles to CW contracts, so they can call our modules(called pallets) as if these are just usual contracts. One of precompiles is IBC Wasm Hook from Osmosis (allows IBC to terminate ICS 20 packets with contracts) calls. It requires generation and verification of sender and receiver using specific bech32 account encoding which needs some cosmos types for handling that.

Btw our no_std CW fork uses error in core feature.

from cosmos-rust.

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.