Pages:
Author

Topic: iOS Bread Wallet - page 2. (Read 31048 times)

member
Activity: 170
Merit: 10
February 02, 2016, 06:05:57 PM
#64
Hi,

We are trying to build the App for eMark Client.

The App connects to the other Clients and Synchronize to ~10.000 Blocks before "last block".
Then it comes "invites" and the App replies with:

Code:
sendGetblocksMessageWithLocators

The Client has to response with:
https://github.com/emarkproject/eMark/blob/master/src/main.cpp#L2796

We have modify the funktion like this:
Code:
void static ProcessGetData(CNode* pfrom)
{
    std::deque::iterator it = pfrom->vRecvGetData.begin();

    vector vNotFound;

    LOCK(cs_main);

    while (it != pfrom->vRecvGetData.end()) {
        // Don't bother if send buffer is too full to respond anyway
        if (pfrom->nSendSize >= SendBufferSize())
            break;

        const CInv &inv = *it;
        {
            boost::this_thread::interruption_point();
            it++;

            if (inv.type == MSG_BLOCK || inv.type == MSG_FILTERED_BLOCK)
            {
                // Send block from disk
                map::iterator mi = mapBlockIndex.find(inv.hash);
                if (mi != mapBlockIndex.end())
                {
                    CBlock block;
if (!block.ReadFromDisk((*mi).second)) {
assert(!"cannot load block from disk");
}

if (inv.type == MSG_BLOCK) {
pfrom->PushMessage("block", block);

}
else {
CBlockIndex *pindex = NULL;
pindex = (*mi).second;
pindex = pindex->pnext;

map::iterator mi = mapBlockIndex.find(block.hashMerkleRoot);
pindex = (*mi).second;

pindex = pindex->pnext;

pfrom->PushMessage("merkleblock", pindex->GetBlockHeader());
cout << "Merkleblock sended\n";

//typedef std::pair PairType;

//foreach found Transactions
//BOOST_FOREACH(PairType& pair, merkleBlock.vMatchedTxn)

//send TRANSACTION
//pfrom->PushMessage(NetMsgType::TX, block.vtx[pair.first]);
}

                    // Trigger them to send a getblocks request for the next batch of inventory
                    if (inv.hash == pfrom->hashContinue)
                    {
                        // Bypass PushInventory, this must send even if redundant,
                        // and we want it right after the last block so they don't
                        // wait for other stuff first.
                        vector vInv;
                        vInv.push_back(CInv(MSG_BLOCK, hashBestChain));
                        pfrom->PushMessage("inv", vInv);
                        pfrom->hashContinue = 0;
                    }
                }
            }
            else if (inv.IsKnownType())
            {
                // Send stream from relay memory
                bool pushed = false;
                {
                    LOCK(cs_mapRelay);
                    map::iterator mi = mapRelay.find(inv);
                    if (mi != mapRelay.end()) {
                        pfrom->PushMessage(inv.GetCommand(), (*mi).second);
                        pushed = true;
                    }
                }
                if (!pushed && inv.type == MSG_TX) {
                    CTransaction tx;
                    if (mempool.lookup(inv.hash, tx)) {
                        CDataStream ss(SER_NETWORK, PROTOCOL_VERSION);
                        ss.reserve(1000);
                        ss << tx;
                        pfrom->PushMessage("tx", ss);
                        pushed = true;
                    }
                }
                if (!pushed) {
                    vNotFound.push_back(inv);
                }
            }

            // Track requests for our stuff.
            g_signals.Inventory(inv.hash);

            if (inv.type == MSG_BLOCK || inv.type == MSG_FILTERED_BLOCK)
                break;
        }
    }

    pfrom->vRecvGetData.erase(pfrom->vRecvGetData.begin(), it);

    if (!vNotFound.empty()) {
        // Let the peer know that we didn't find what it asked for, so it doesn't
        // have to wait around forever. Currently only SPV clients actually care
        // about this message: it's needed when they are recursively walking the
        // dependencies of relevant unconfirmed transactions. SPV clients want to
        // do that because they want to know about (and store and rebroadcast and
        // risk analyze) the dependencies of transactions relevant to them, without
        // having to download the entire memory pool.
        pfrom->PushMessage("notfound", vNotFound);
    }
}

see at line:
Code:
pfrom->PushMessage("merkleblock", pindex->GetBlockHeader());

But this doesn't work, because its not the merkleblock. Its only the header of the merkleblock.

Can you help us, what to do?
At this moment, we only need to know, how to read the complete merkleblock like this:

Code:
pfrom->PushMessage("merkleblock", pindex->GetMerkleBlock());

Thank you.

(sry for my bad englisch)
legendary
Activity: 1512
Merit: 1012
January 26, 2016, 09:19:03 AM
#63
This is the best cold storage app available for IOS. Use this one on mine mobile phone. Hope they keep improving this nice wallet.

Do you have an iDevice specifically offline for cold storage?

You can also generate a wallet, write down the recovery phrase and initial receive address, and then choose "start/recover another wallet" to remove it from the device.

While having your device in flight mode Smiley

I personally wouldn't do that unless I restored my iDevice, configured it as a new device, created the wallet, restored it again and kept using it, and I think that's just too much of a hassle to create a seed. There are quicker and equally safe (or even safer) ways to do it. And yes, I'm that paranoid Wink

member
Activity: 115
Merit: 19
January 25, 2016, 07:39:25 PM
#62
This is the best cold storage app available for IOS. Use this one on mine mobile phone. Hope they keep improving this nice wallet.

Do you have an iDevice specifically offline for cold storage?

You can also generate a wallet, write down the recovery phrase and initial receive address, and then choose "start/recover another wallet" to remove it from the device.
legendary
Activity: 1512
Merit: 1012
January 25, 2016, 09:38:59 AM
#61
This is the best cold storage app available for IOS. Use this one on mine mobile phone. Hope they keep improving this nice wallet.

Do you have an iDevice specifically offline for cold storage?
hero member
Activity: 1036
Merit: 501
January 25, 2016, 07:44:40 AM
#60
This is the best cold storage app available for IOS. Use this one on mine mobile phone. Hope they keep improving this nice wallet.
legendary
Activity: 1512
Merit: 1012
January 25, 2016, 07:33:25 AM
#59
To ask my question in another way: How to recover Bread funds if whatever happens to you

If the developer ceases to support the app you'll still have it on your device, working. To recover the coins, import your passphrase in MultiBit HD

or Apple for whatever reason pulls your wallet from the App store? You get the idea.

If Apple pulls the app, the same thing happens: you will still have it on your device until you uninstall it. Either way you'll have plenty of time to recover your coins in whatever situation. Don't forget to keep your seed stored somewhere.

Just curious, does bread run through multibit?  Or is multibit just capable of recovering any type of wallet with the correct seed?  I never ran multibit before, but if this is the case I might have to download it just in case.

What do you mean with run through? Both are apps on their own Smiley Multibit is capable of recovering breadwallet seeds. For reference, here's a wallet compatibility matrix.
legendary
Activity: 1316
Merit: 1004
January 24, 2016, 09:36:41 PM
#58
To ask my question in another way: How to recover Bread funds if whatever happens to you

If the developer ceases to support the app you'll still have it on your device, working. To recover the coins, import your passphrase in MultiBit HD

or Apple for whatever reason pulls your wallet from the App store? You get the idea.

If Apple pulls the app, the same thing happens: you will still have it on your device until you uninstall it. Either way you'll have plenty of time to recover your coins in whatever situation. Don't forget to keep your seed stored somewhere.

Just curious, does bread run through multibit?  Or is multibit just capable of recovering any type of wallet with the correct seed?  I never ran multibit before, but if this is the case I might have to download it just in case.
legendary
Activity: 1512
Merit: 1012
January 24, 2016, 07:27:15 PM
#57
To ask my question in another way: How to recover Bread funds if whatever happens to you

If the developer ceases to support the app you'll still have it on your device, working. To recover the coins, import your passphrase in MultiBit HD

or Apple for whatever reason pulls your wallet from the App store? You get the idea.

If Apple pulls the app, the same thing happens: you will still have it on your device until you uninstall it. Either way you'll have plenty of time to recover your coins in whatever situation. Don't forget to keep your seed stored somewhere.
sr. member
Activity: 302
Merit: 250
January 24, 2016, 09:28:18 AM
#56
Hey Aaron, thanks for the great app! (Though I don't use it, I'm not on iOS, which is my problem)

Question: what's a compatible, trusted implementation of the same 12-word seed wallet which works on the desktop/web as well?

The now defunct Hive Wallet (for the web) was one, which was a fork of Andreas Schildbach's Android wallet: https://bitcointalksearch.org/topic/m.13137786

We recommend strongly against ever typing your recovery phrase into other devices or wallet software, as they are not built to the same security standards. If however you are a security expert and have hardened your system against malware, or are just playing around with trivial amounts, then one other implementation i've referenced is https://dcpos.github.io/bip39/

Thanks for https://dcpos.github.io/bip39/

I'm all about standardization, not fragmentation. So, all in all, isn't Bread essentially the same as Hive > Coin.Space (over here: https://bitcointalksearch.org/topic/coinspace-digital-currency-wallet-1004057) and/or Andreas Schildbach's Android wallet?

I guess, that's the best for all of is. Isn't it?

To ask my question in another way: How to recover Bread funds if whatever happens to you, or Apple for whatever reason pulls your wallet from the App store? You get the idea.

Thanks for your work!
newbie
Activity: 13
Merit: 0
December 12, 2015, 09:04:16 AM
#55
It's my mobile wallet. Really like it.
legendary
Activity: 1316
Merit: 1004
December 06, 2015, 09:43:24 PM
#54
I'm not sure if the question has been asked here or on the other thread, but is there any way/any plan to allow the ability to sign/verify addresses using bread? I feel like I might have asked this question before somewhere, but I can seem to find where I asked, so forgive me if I have asked this question before or some one else already has.

We don't support it currently, but I would consider accepting a pull request that enabled it through an x-callback-url mechanism, so long as only allowed signing with already spent-from wallet addresses. We wouldn't want users exposing pubkeys for addresses that still have funds on them. I'm curious what your specific use case is. My perception is that this feature isn't used much anymore.

No real use for me right at this moment, just more of a curiosity/potential future use if a situation comes where I needed too verify something and I was away from my computer, so I could on my phone using bread.
member
Activity: 115
Merit: 19
December 06, 2015, 09:35:51 PM
#53
I'm not sure if the question has been asked here or on the other thread, but is there any way/any plan to allow the ability to sign/verify addresses using bread? I feel like I might have asked this question before somewhere, but I can seem to find where I asked, so forgive me if I have asked this question before or some one else already has.

We don't support it currently, but I would consider accepting a pull request that enabled it through an x-callback-url mechanism, so long as only allowed signing with already spent-from wallet addresses. We wouldn't want users exposing pubkeys for addresses that still have funds on them. I'm curious what your specific use case is. My perception is that this feature isn't used much anymore.
legendary
Activity: 1316
Merit: 1004
December 06, 2015, 07:59:51 PM
#52
I'm not sure if the question has been asked here or on the other thread, but is there any way/any plan to allow the ability to sign/verify addresses using bread? I feel like I might have asked this question before somewhere, but I can seem to find where I asked, so forgive me if I have asked this question before or some one else already has.
member
Activity: 115
Merit: 19
December 03, 2015, 01:10:33 PM
#51
Hey Aaron, thanks for the great app! (Though I don't use it, I'm not on iOS, which is my problem)

Question: what's a compatible, trusted implementation of the same 12-word seed wallet which works on the desktop/web as well?

The now defunct Hive Wallet (for the web) was one, which was a fork of Andreas Schildbach's Android wallet: https://bitcointalksearch.org/topic/m.13137786

We recommend strongly against ever typing your recovery phrase into other devices or wallet software, as they are not built to the same security standards. If however you are a security expert and have hardened your system against malware, or are just playing around with trivial amounts, then one other implementation i've referenced is https://dcpos.github.io/bip39/
sr. member
Activity: 302
Merit: 250
December 03, 2015, 06:39:38 AM
#50
Hey Aaron, thanks for the great app! (Though I don't use it, I'm not on iOS, which is my problem)

Question: what's a compatible, trusted implementation of the same 12-word seed wallet which works on the desktop/web as well?

The now defunct Hive Wallet (for the web) was one, which was a fork of Andreas Schildbach's Android wallet: https://bitcointalksearch.org/topic/m.13137786
member
Activity: 115
Merit: 19
October 12, 2015, 02:25:38 PM
#49
Yes this is the correct way to do it. It's annoying but it prevents someone you loan you phone to from being able to erase your wallet. An unauthoized person must be in possession of the device for 24hrs (or be able to do a factory reset by knowing the device passcode)
legendary
Activity: 1736
Merit: 1001
October 12, 2015, 02:16:04 PM
#48
How can i erase Breadwallet + all its data ?
i have a test version on my iPhone 6, never save the passphrase (seeds)
i know right  Roll Eyes
i want to erase it and start with a new fresh wallet (but the old password always comes up)
Huh
tx

On the settings menu, delete the seed and start fresh.

- start/recover another wallet ?
i can not, do not have the old seeds or password
??

I erased the whole phone already
installed new wallet, set up new wallet, all worked
but the sec i do a sync with iTunes the old wallet comes back and i am stuck again
 Huh

Exactly, that's the option. No need to restore your phone just for this Cheesy You get the old wallet back because that's the information synced with iTunes. When you restored, did you set it up as new phone or did you restore from an iTunes/iCloud backup?

I can not !
there it is asking me for "Recovery Phrase to wipe it and start/recover another."
and i do not have that

Edit:
sorry this is such a pain ... , i just wanted to install a test wallet,(did not save anything) and planned to install a proper wallet after
but now i can not get rid of that test
 Undecided

You can enter a bad pin. Keep doing it. The delay will keep increasing. It will take about 24 hours to get to the point... but once you put it in wrong like 5 or 6 times, the seed/wallet is wipped and you can start fresh. I had to do this myself once because I also didn't write down my first seed cause I was just planning to "play" with it.
member
Activity: 98
Merit: 10
error
October 10, 2015, 12:02:13 PM
#47
you can view the passphrase in the settings menu!

and then type it down to delete that wallet.
legendary
Activity: 1834
Merit: 1023
October 06, 2015, 05:02:28 AM
#46
If you lost both your recovery phrase and your passcode, then after you enter 8 different incorrect passcodes, and about 24hrs of lockout, the wallet will reset and you can start a new one.

I haven't run into an issue where iTunes syncing overwrites app keychain data with older data. If you're still encountering this problem, please open github issue (linked on breadwallet.com) so we can get more information about your phone and settings.

How can i erase Breadwallet + all its data ?
i have a test version on my iPhone 6, never save the passphrase (seeds)
i know right  Roll Eyes
i want to erase it and start with a new fresh wallet (but the old password always comes up)
Huh
tx

On the settings menu, delete the seed and start fresh.

- start/recover another wallet ?
i can not, do not have the old seeds or password
??

I erased the whole phone already
installed new wallet, set up new wallet, all worked
but the sec i do a sync with iTunes the old wallet comes back and i am stuck again
 Huh

tx guys !
newbie
Activity: 71
Merit: 0
October 05, 2015, 09:24:18 PM
#45
Contact the guy who made the app then your good
Pages:
Jump to: