Giter Club home page Giter Club logo

Comments (8)

dr-orlovsky avatar dr-orlovsky commented on July 23, 2024 2

Actually Amount is very needed and I was thinking of doing it myself. I will use it from ln-types right away and re-export in lnp-core as millistat amount.

BTW rust-bitcoin Amount is so terrible that I was thinking about doing Sats type in descriptor-wallet to use it here as well.

from lnp-node.

Kixunil avatar Kixunil commented on July 23, 2024 1

Done, looks like everything went well.

from lnp-node.

dr-orlovsky avatar dr-orlovsky commented on July 23, 2024

Oh, where have you been a year ago when I had to do LNP Core lib (https://github.com/LNP-BP/lnp-core) and inet2_addr with all of those primitives...

... but from what I see not your types are pretty much different from mines and still many places. I will try to integrate/use them in inet2_addr.

As for moving the repo, I will be happy to have it here. In rust-bitcoin the requirement is MSRV 1.29 and having multiple contributors (one of the reasons I was not able tot bring https://github.com/LNP-BP/descriptor-wallet there, which also have multiple utility types on top of rust-bitcoin)

from lnp-node.

Kixunil avatar Kixunil commented on July 23, 2024

Yeah wanted to do this for a while but couldn't find the time. Happy to see that being later is still more helpful than not doing it.

In rust-bitcoin the requirement is MSRV 1.29

I mean the organization, not library. It doesn't even fit architecturally into the library. For instance rust-lightning library has higher MSRV and is in rust-bitcoin organization.

BTW rust-bitcoin Amount is so terrible

Which aspects do you find terrible? For me it's mostly overflow being unchecked and it not being used in TxOut (there's a PR to fix that). Other things seem OK to me.

from lnp-node.

dr-orlovsky avatar dr-orlovsky commented on July 23, 2024

I mean the organization, not library.

I also meant organization :D It has the same name as the library - and same rules

For instance rust-lightning library has higher MSRV and is in rust-bitcoin organization.

It is not there anymore and was there due to historical reasons. I was told by org requirements for adding repos by A.Poelstra several months ago, so ...

Which aspects do you find terrible? F

  • Overflow
  • Display
  • FromStr

from lnp-node.

Kixunil avatar Kixunil commented on July 23, 2024

Ah, now I see! Will look into migrating later, I'm too tired now.

I feel that displaying it directly with denomination is a good way to avoid footguns and my PR fixes the inability to be precise. Do you have other ideas what could be improved? Per Rust convention FromStr should be capable of parsing whatever came out of Display.

from lnp-node.

Kixunil avatar Kixunil commented on July 23, 2024

I tried to transfer ownership but got this error: "You don’t have the permission to create public repositories on LNP-BP"

from lnp-node.

dr-orlovsky avatar dr-orlovsky commented on July 23, 2024

Sorry for taking so long: GiHub permission structure constantly change and hard to understand. I have allowed repository creation, so pls try now.

from lnp-node.

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.