How do you create a 12 or 24 mnemonics code for multiple cryptocurrencies (ETH, BTC and so on..) - flutter

I just started using Flutter and I am trying to create a crypto wallet app that can support multiple different cryptocurrencies. The current issue I am facing is, is that I don't know how a mnemonics code is being generated for different cryptocurrencies when trying to create a backup for multiple wallets. I am using this library btw: https://pub.dartlang.org/packages/bip39
Any help would be much appreciated!

You can use one mnemonic code for all cryptocurrencies. As you can see in the library documentation you linked, you use the mnemonic code to get a wallet seed. That wallet seed is then used to create a HD wallet.
That single HD wallet can have many different cryptos. You differentiate between them by following the scheme in BIP44. In the accompanying SLIP44 there's a list of what HD wallet constants each currency uses.

Related

What is the easiest way to fetch data dynamically from a cloud storage to a flutter app

I am looking for a way to fetch data to my flutter app which can be adjusted and modified dynamically after deploying the app. As an example, if I want to change the images of the carousel depending on promotions or launch new books to the digital library. I need an economic option to host the data in cloud storage and fetch it from there.
I have considered firebase as well as google drive, but have yet to find a good guide. being a beginner and having concerns about security I want some expert advice if possible.
*edit-
Seeing many a tutorial I assume there is no better way than linking file URLs from the
Cloud Storage. So to dynamically change those is it possible to refer the URLs to some excel sheet fields to obtain URLs. Those fields can certainly be adjusted then without any hard coding. but the question is how to refer to such a sheet file? *
I also want to segregate the users into paid and free users, I have successfully proceeded with the authentication with firebase but still don't understand(I do have some concepts but don't know where to do that) how to put them in groups and impose limitations on them about accessing the data. any guidance, links and helpful advice will be cordially appreciated.
According to what you are looking for, I highly recommend you to use Firebase Remote Config, which is a cloud tool that allows you to modify your app's functionality and appearance without forcing users to download an update. You define in-app default values that control the functionality and appearance of your app when you use Remote Config. Then, for all app users or for subsets of your user base, you may utilize the Firebase console or the Remote Config backend APIs to modify in-app default values.
Your program can control when updates are applied, and it can check for updates regularly and apply them with minimal performance impact.
Remote Config comes with a client library that takes care of essential functions like fetching parameter values and caching them while still allowing you to manage when new values are active and how they affect the user experience in your app.
Here is a tutorial that uses Flutter and Firebase Remote Config that could also help you.

Ionic Framework different databases

I am new to Ionic, currently learning to develop using Ionic. I just have a question, I don't know if it is possible.
My plan is to create an Ionic app, one application/code base only, for browser as admin, and mobile app for the user. I will limit their access based on the user.
Is it possible that I have two different database on my app?
On my browser I will use REST API to connect to MySQL.
On the generated mobile app, I will use an offline database.
Hope you can enlighten me. The goal is to develop a one application for web and mobile app. But I don't know if it is possible.
Thank you.
Your question is not very clear, I will try to answer according to what I understood.
You didn't mention the back-end, so I am assuming you are using the same data structure for both, e.g(user has id and name and phone, in both, identically)
In this case you can create a setting file where you will save your constant connection strings along with any necessary information(create a any-name.ts file in your root folder and just write down
export let example = {...}
and whenever you need, just import your any-name.ts and use the object inside.
If the data structure is also different, I thinks you will be doing massive works to maintain such an app, but the idea would be creating 2 of each functionalities having the same output but different inputs.
P.S in both cases I mentioned you will need to detect the platform to define which function/information is adequate.

Have multiple channels open on one project in Agora for enterprise project?

It's a bit hard to summarize my problem into a question, so bear with me. In the Agora documentation, they give usage examples that only utilizes one channel on a project that you create at the start of the documentation, or tutorial if you will (you create new projects at console.agora.io).
In my project, I need to be able to allow users to create "rooms" where they can send audio to each other, but the documentation only shows how to create 1 channel on your project, with only one temporary token provided. If I were to use the token in my program, then users would all connect to one huge global channel with every user on it, which defeats the purpose of creating rooms. I know that with the Android documentation here, you can just call createChannel and it will make a channel on your Agora project. I need to make more than one channel, so users can create their own and join other user's channels/rooms, so that should work, but how do I do this with Flutter? Switching the platform to Flutter on the documentation website shows an error. Is this not possible? How do I have multiple channels created on one Agora project with Flutter? Essentially the problem boils down to the question, how do I make a channel?
The new project that you create through Agora's console gives you an APP ID which basically helps to connect your account. While in your code you have a joinChannel() function - now this can take a predefined value in case you want only one channel or you can pass a variable for that channel name and that channel name can be read as an input.
You can refer to this code over here: https://github.com/Meherdeep/agora-group-calling

How can I use my own api to other platforms?

I made a json api with using this => https://www.django-rest-framework.org/tutorial/quickstart/
All the articles I read teach the creation and use of api within its own platform, what I need is what I produce on the web, use it to in other platforms. I made my api but no idea about how to import it in other platforms..
so how can I use my own api in my c# windows form application or my flutter project
Any link, guide etc.
First of all you should be clear about why you need an api. If you need to transfer data from one system to another, pick a way that you know you can operate on both sides.
JSON or XML are just ways of representing data, first think about what you need and how can you transport that data between systems...After that the implementation should be clear.

How do I create a charge on a Stripe customer from a connected account

I'm creating a type of ride-sharing application for iOS using Swift and Firebase Functions and would like to implement the following workflow:
Passenger requests ride from specific driver
Driver has 2 options
a. Driver accepts and the passengers card is charged
b. Driver declines and thats it
I've gone through pages and pages of Stripes documentation and Github to find the best example to go off, but can't seem to find one that fits what I'm after.
You can find an example here: https://stripe.com/docs/connect/collect-then-transfer-guide
There's also https://rocketrides.io/ which is a complete example, including code, of a ride sharing app.