Bible Pay

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Rob Andrews

Pages: [1] 2 3 4 5 6 7 8 ... 270
1
Active Discussions / Re: BIBLEPAY - DOGE DECENTRALIZED EXCHANGE
« on: February 26, 2025, 09:00:23 PM »
Ok now suddenly it seems to be working, maybe i was doing something wrong thanks rob.
Ok, glad you got it working.
Just an FYI, both the colored DOGE and the Trading balance (but NOT the native DOGE), those two addresses are internal and should never be out of sync with coin control (as they are regular chain addresses).  If you see an amount in coin control, it must match what is on the RPC.
Unless wallet is syncing or out of sync.  Also, these two addresses use instantsend, so as long as you see a lightning bolt after releasing money to yourself, it is instantly available in the rpc and in the trading room.

The getassetbalance DOGE however, is your private key, but we make a DOGE rpc call to count your UTXOs in real time so that balance can be off for a few minutes if a DOGE block is being mined (for example if you recently spent a DOGE txid, you would see the last balance until the block is mined).  But nevertheless there cannot be a double spend because at the time of spending we spend the confirmed UTXO.


2
Active Discussions / Re: BIBLEPAY - DOGE DECENTRALIZED EXCHANGE
« on: February 24, 2025, 10:52:01 AM »
Hi Rob,

I still keep getting public trading key is 1 when i try to sell some bbp,  and i have funded it a couple of times.

any ideas? wallet is unlocked, and i have waited a few blocks.
Hi Bro Budinga,
Can you give me an example or a paste of what output you mean?
Im not sure what you mean.

Heres two things you can try:
1) exec getassetbalance trading
Verify balance is good (^ that command only works on the latest version of the wallet btw).

2) From coin control, find your 'TRADING-PUBLIC-KEY' and verify it has a positive balance.
You may have spent some from it, if so you can just re-send funds to it.
Then you can LOCK the funds with Coin Control to keep that from happening again.
The exchange can spend from it when an order is filled.



3
So Im relatively pleased with the outcome of the in-wallet DOGE exchange.  It allows any BBP user to trade in and out of BBP using DOGE, which is listed on every exchange in the world.

The fractional fills feature should be ready any day now.  NOTE: The exchange is still not released to mainnet, but is coming soon.

I want to shift to discussing one of our old legacy features called "Portfolio Builder". 
The idea behind portfolio builder was to reward core BBP users with additional BBP staking-type rewards in exchange for holding BBP+OtherAltCoin in their core wallet.  The reason for this is twofold: One we want more adoption and mainstream use of the wallet, and two- we want our BBP user to gain financially when solid coins from the crypto sector appreciate.  (This is similar to investing in a Crypto index, however I want to save the BBP CryptoIndex as a separate feature).  This feature is slightly more granular -- take some of the top upcoming stars that have growth potential, like DOGE,XRP,XLM,ETH and when you marry one of those coins with an equal amount of BBP you earn staking rewards.  These staking rewards are based in APR%, but that % dynamically increases as the wallet budget increases the DWS rewards %.  To have a campaign that brings in 1000 new users for example, we may increase the stake reward 1% per day until it reaches a level where hundreds of new users pour in, then we will stabilize the % reward and scale it back slowly in order to keep the new users with us.

However, there were some pros and cons about hosting this on unchained.  1) It was easy (pro), 2) it was not decentralized.  I strongly believe in Your Keys your Money, so I would like to re-write portfolio builder to be a core wallet feature.  This will give us even more reason for people to say good things about BBP: They are not just a clonecoin, they are a valuable utility.  They have a service that is useful. 

So my next step is to integrate the code in the windows wallet that gives us a "Portfolio Builder" module.
In it we have the goal of this side program to first of all be a cryptowallet for XLM,XRP,DOGE,ETH.  The key for the wallet will be derived from one of your new wallet keys - so that when you back up your wallet.dat you are still the sole owner of the private key and that will not be compromised or shared outside of your wallet.
This is written in a way so that you click on XRP for example, you will see your Ripple balance and have the ability to send XRP and receive XRP from the UI.  The BBP core wallet derives the key by:  Generating a new BBP keypair, labeling it "ASSET-KEY-XRP" and then taking the WIF private key, it then derives the XRP private seed, and using that you have a new XRP keypair.

This would be phase 1:  Simply provide a UI to send and receive crypto in these alt currencies.
Phase 2: The next step is for us to make a signing format so that portfolio builder will tie together an XRP+BBP balance, and report it to the sidechain.  The sidechain would then send stakers a daily PB reward for holding homogenized BBP.

So in plain English to the end user what this means is:
- User deposits $100 of XRP into the BBP core wallet
- User deposits $90 of BBP into the BBP staking address
- PB assesses user A as having the minimum(XRP,BBP) which is $90 in this case homogenized
- PB annual reward currently is 11% (6% higher than the fed-funds risk free rate)
- User A receives a reward denominated in BBP for 11% of $90 annualized divided by 365, as a daily reward (IE $90*.11 = 9.9 / 365 = .02 cents) denominated in BBP.

Of course, this is just an example, users may not come for .02 cents, but due to the structure of our campaigns and foundation gifts, we can increase this PB APR% once per day until users do come (IE if we are getting up into the 35% range, people will most likely come) and then we can scale it back once we have 1000 users etc.


So here is another pro about using BBP PortfolioBuilder, lets say you are a church.  We are a good alternative to Coinbase (and centralized exchanges), to store your XRP and BBP in a non-centralized wallet that earns BBP rewards.  A church can buy XRP on coinbase or Binance, and withdraw it to BBP to earn the rewards.  This way if Coinbase or Binance goes under (like FTX and MtGox did) you still have the cold wallet.  Its also a good alternative to keeping it off of your only phone (single point of failure) - IE trust wallet.  With TrustWallet you still have to trust the devs who run the API with the private key.  With BBP, the key never leaves the device.  So its an alternative to the Nano Ledger (hardware wallet), except the pro is you get the BBP interest.  Basically the user has to have a whole PC running, and they back up the key to a USB flash drive for example.  So it is a viable and useful project for churches, it seems, and for crypto retirement accounts.


4
Active Discussions / Re: BIBLEPAY - DOGE DECENTRALIZED EXCHANGE
« on: February 20, 2025, 03:18:44 PM »
So I assume, with lack of any more complaints that everything is working perfectly as far as trades with perfect matches.

Im going to move on to partial fills next.

Please keep an eye out for the next mandatory upgrade- most likely by the weekend.

If anyone can do any more testing, please do it so we can build on something that already works properly.


5
      Solved
Great, glad you solved it.  If you ever end up on a fork just do a complete reindex of the wallet and you will catch up.

I will notify Chainz of the new version after this next mandatory (we are working on fractional fills now).

[/list][/list]

6
If we don't keep installing these mandatory updates for a while, what will happen to our balances?

The coins that you legitimately bought from exchanges or mined in the past, those are always safe.

When a user decides not to upgrade, you will go on your own personal fork (along with the other sancs who have not upgraded), and will have your own invalid version of the blockchain.


7
Active Discussions / Re: BIBLEPAY - DOGE DECENTRALIZED EXCHANGE
« on: February 17, 2025, 11:18:09 AM »
Hi Rob,

Both addresses have the same label:  "TRADING-ASSET-DOGE"

When I check my asset balance at the console, it reports only one of them though: B98GozkCagidcdFMY2zyKf7k3ioud2DgZz (it seems to hold the wrapped DOGE from my only transaction on the exchange)

Ok, so to get rid of the second one, just pick the one where the address is not equal to the official one in the RPC output, just edit it and make it something completely different like 'old-asset-doge' and then it wont be used by the wallet.

We will keep an eye on this behavior and see if it happens again.  Ill also think of ways that could cause this race condition.


8
Active Discussions / Re: BIBLEPAY - DOGE DECENTRALIZED EXCHANGE
« on: February 17, 2025, 11:14:59 AM »
ive been trading with myself using 2 machines and im not able to replicate what happened previously
Great on two machines, we will test this extensively before moving it to prod.
Ill also put a mutex on it when we are in there next time for anything.
In the mean time feel free to try to abuse it.

It also could have been during the transition from the fork to instantsend.  If you want, you can reindex your wallet and check and see if any orphaned tx's are released to your main balance.

(Unfortuantely dash took out the feature called -zapwallettxes=1 otherwise I would suggest that).

I think the main priority is to try to see if there is ever an error with these.

One other feature we could probably add, is for me to log the trading balance and the doge balance every time something is done in the tradinglog.  We have a tradinglog.dat file being appended now.


9
Active Discussions / Re: BIBLEPAY - DOGE DECENTRALIZED EXCHANGE
« on: February 15, 2025, 06:57:35 PM »
Ok good on synced.
Yeah, that comment about 84K was a very rough comment before I even started digging into the getrawtransaction, so lets let that one go as i might not have been counting something in my list as I have a lot of dust in there from doing some back and forth testing, but if we can keep a log of some sort as we transact to each other, lets start over and do that.

I will think about the possibility of a duplicate also, and get back to you more on that.
Give me a few mins to release this new version with exec getassetbalance trading.

On the 5K transactions, I bought 5 of them at 5K each. My bbp balance increased by 24999 and my w-doge balance decreased by 1.06.
See if yours had the opposite effect, but without looking at the txlist, maybe checking the two commands instead?







10
Active Discussions / Re: BIBLEPAY - DOGE DECENTRALIZED EXCHANGE
« on: February 15, 2025, 06:42:38 PM »
Ok, hopefully this will help you guys hone in on auditing.

If you want, please upgrade to this v0.23.3:
https://github.com/biblepay/biblepay/releases/tag/v023.3-Mandatory

It has the :
exec getassetbalance trading
exec getassetbalance doge

Which you can do before and after a trade and then you can log it in the spreadsheet, and see how your wallet balances were updated.


11
Active Discussions / Re: BIBLEPAY - DOGE DECENTRALIZED EXCHANGE
« on: February 15, 2025, 06:39:30 PM »
yes its synced

yeah so thats the confusing part for me then if i only sold 49k worth of bbp 7 trades @ 7000? how did you get 84k? i lost 126k and you shouldve only spent 3.794 wrapped doge


edit: It must be something to do with when you put in multiple orders for the same amount, like the first time it happened with the 2000 BBP transactions this time with 7000 BBP.  If i do trades one at a time and let them find a match it works fine, when you spam order all of the sells if there's more than 1 match for the order it can buy it multiple times? not sure.

I will put up a bunch of sell orders for 5000 BBP each try to buy all of them at once and see if it replicates the issue for you.

Ok good on synced.
Yeah, that comment about 84K was a very rough comment before I even started digging into the getrawtransaction, so lets let that one go as i might not have been counting something in my list as I have a lot of dust in there from doing some back and forth testing, but if we can keep a log of some sort as we transact to each other, lets start over and do that.

I will think about the possibility of a duplicate also, and get back to you more on that.
Give me a few mins to release this new version with exec getassetbalance trading.

12
Active Discussions / Re: BIBLEPAY - DOGE DECENTRALIZED EXCHANGE
« on: February 15, 2025, 06:34:18 PM »
Regarding the base behavior, for orders that have different amounts per order, ignoring the txlist, I got a 100% success rate on all fills over two machines over 10 transactions.  I logged the before and after balance during each trade in this spreadsheet - see below.

Yes, it is possible something else is happening with tx's that have the same amount, or maybe it was just the txlist confusion.
What you can do is load BBP on two machines and transact across those and try to replicate it.
I can also take the other side of the trade on a few that have the same amount next.

In the mean time, Im going to push a version (for windows only) with one tiny change that makes it easier to record this audit log.
I added 'exec getassetbalance trading' which shows your Trading-public-key balance.  What Im doing to audit this is doing exec getassetbalance trading and recording it, and exec getassetbalance doge, and recording it and then finishing the trade.  Ill update separately with that windows version in a few minutes.


13
Active Discussions / Re: BIBLEPAY - DOGE DECENTRALIZED EXCHANGE
« on: February 15, 2025, 04:41:43 PM »
could i be on a fork or something?

my blockheight 565864 - Sat Feb 15 14:35:08 2025 - 000000db04270eadc190de339a848e54cc3a027a3bda97eecd7bd25d5bafe171

cryptoid is up to 565880 ...  https://chainz.cryptoid.info/bbp/block.dws?565880
Aha!  I see what you were talking about, I was doing some more testing to see exactly what is being transferred.
So realize that the Native BBP going from wallet to wallet will look fine in the transaction list, because the debit in one wallet is really a negative in the txlist, and the credit in the other wallet is a Credit, so that part is not confusing.

HOWEVER, on the colored asset (IE getassetbalance DOGE), since the atomic tx sends the original owner Change, it will actually look as if you are Receiving more DOGE PLUS receiving the BBP if you are the seller.  Thats pretty confusing (we can fix that cosmetically later once we certify the operation of the exchange with about 40+ tests etc and everyone feels comfortable that it is working right).

So I did a test as a buyer just now, and the way I verified it was I recorded my BBP balance before and after the trade and I can see my exec getassetbalance doge going down, my BBP going up, but yet I see a credit in the txlist for +1.2 colored doge-- that is because if you look at getrawtransaction, if you audit the tx, there is 1.2 wdoge in change but yet my wdoge decreased NET by .4.... 

So yeah I believe this is all actually working so far..

Ill see if I can come back online and do 6 tests wallet to wallet and log the results in a spreadsheet.

In the end we just want to see that the only cosmetic issue that needs fixed is the txlist would need to mask the "TRADING-ASSET-DOGE" transactions and just let the rpc show those.



14
Active Discussions / Re: BIBLEPAY - DOGE DECENTRALIZED EXCHANGE
« on: February 15, 2025, 01:45:47 PM »
screenshots
You should be fine because it was a hard fork, 00000237a182585f0ce421958a4fce3bb73a86c7a8edc56c24ee9b3acd1c5255
is the hash for 565868 - are you synced with me now?
(We cant check chainz now until we notify them).

Actually I think it worked this time, because the trades that you made at that time- im looking at all the DOGE I lost and the BBP i gained.
I gained 84K bbp and lost 9.4 wrapped doge.  So you should have lost 84k bbp from your wallet.  I can tell its working now because every
tx in my wallet has 2 rows for each one (IE losing bbp, gaining wdoge). 

If you can check one all by itself and just watch it til it fills and then monitor your wdoge asset balance and your bbp balance you should see both change.

I just put a few more in



15
Active Discussions / Re: BIBLEPAY - DOGE DECENTRALIZED EXCHANGE
« on: February 15, 2025, 01:10:23 PM »
1) If all goes well, these trades should be fully atomic now, meaning that you lose the wrapped DOGE in the same TXID that you gain the BBP, or you lose the BBP and gain the wrapped DOGE atomically in the same TXID.  I just tested one (Note that if you do this you must test on two machines because the tx's are only constructed properly with a counterparty-- not with your own wallet); and it worked!  So far so good on my trade (good luck).  I also tested an ingate and an outgate (which are the same as before).  A nice bonus out of this new feature is if either party either does not have the funds or the tx fails, the entire trade fails and waits for the next block and tries again (which is nice if we lose our quorum for some reason).  Additionally these trades work with instantsend, so you should see the trade go through instantly and see the lightning bolt (when the supermajority of the sancs are upgraded properly).

2) After we get over this hump and things appear to work perfectly then we can move on to fractional fills and populating the metrics in.


Pages: [1] 2 3 4 5 6 7 8 ... 270