Comments (6)
@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.
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.
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.
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.
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.
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)
- BitcoinKit Library does not support SEGWIT addresses starting with "3…" (total loss 1 BTC)
- "Value of type 'OpaquePointer' has no member 'pointee'" in BitcoinKit.Private.swift HOT 3
- secp256k1 conflict with other kit. eg: web3swift. how remove depends
- Is the project being maintained? I wanted to use HDWallet balance and send
- Get signature as expected.
- Pod Install Fails HOT 15
- Good
- Pod install fails HOT 1
- Pod integration fail HOT 3
- Swift Package Manager & Vapor integration fail
- Hierarchical key ("xpub") based address derivation
- How can I check payment way done?
- Value of type 'OpaquePointer' has no member 'pointee'
- Is BitcoinAddress legacy wrong when HashType is .scriptHash ?
- 'OP_CHECKSEQUENCEVERIFY' mainProcess error
- Cannot receive fee
- Cannot send BTC to any wallet HOT 1
- Pod Install Error HOT 1
- Missing arguments for parameters 'bip', 'logger' in call HOT 20
- Why does pod install fail all the time? HOT 4
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.
from bitcoinkit.