Coder Social home page Coder Social logo

Comments (6)

kishikawakatsumi avatar kishikawakatsumi commented on August 30, 2024

@johndpope What do you mean? HDWallet accepts network type (mainnet or testnet) by a parameter. For Wallet, network type is determined by the key which is corresponded to it. You don't need to modify the library code.

from bitcoinkit.

johndpope avatar johndpope commented on August 30, 2024

Closing this.

I have use case where it just needs to be clear to end user which network they’re on. It’s doesnt need to switch but just be visible in wallet.

from bitcoinkit.

johndpope avatar johndpope commented on August 30, 2024

I think when I saw this code - it would be desirable to be able to change the bitcoinkit network without having to recompile code. as in - using it as a pod.

eg. want to be able to hot swap which network from appdelegate.

from bitcoinkit.

kishikawakatsumi avatar kishikawakatsumi commented on August 30, 2024

I don't understand what you are saying. I'm not sure that the behavior you describe is actually desirable. I think that it can be achieved depending on how you implement the application. What kind of support is needed on the library side?

from bitcoinkit.

johndpope avatar johndpope commented on August 30, 2024

looking at the bread library - they have some ruby scripts to toggle flags from at project level - this might be a better way to switch things moving forward. will close this.
to be clear - the idea that this codebase can be imported by a cocoapod as a dependency as a kit - the developer who consumes library will need some way to override the init call to use either the testnet or mainnet. at the moment that code lives inside bitcoinkit.

from bitcoinkit.

kishikawakatsumi avatar kishikawakatsumi commented on August 30, 2024

You probably misunderstood the API. You can change the behavior just passing parameters in code. Do not need to override or else

from bitcoinkit.

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.