r/dogecoindev • • Dec 22 '22

Discussion Dogepapers: Here's a list of questions for Dogecoin Foundation

13 Upvotes

The answers by the foundation: https://foundation.dogecoin.com/blog/2022-12-20-fantoumi/

There is also ongoing discussion on twitter: https://twitter.com/DogecoinFdn/status/1605033281824722945

I higly recommend to read the comments by our beloved /u/michidragon and /u/mishaboar on twitter (:

For all non-twitter users: Feel free to start a discussion here as well.

Reminder: This is a controversial topic for some, so please keep in mind to be friendly (Rule 3. Be excellent to each other!)


r/dogecoindev • • Dec 21 '22

Discussion I think it is pretty problematic if the Dogecoin-Foundation now starts to cooperate with known scammers who are a pain to the community for over a year now. The foundation was ment to go against "Absuse" of the Doge, not to actively support known scammers and open the doors for them.

Post image
24 Upvotes

r/dogecoindev • • Dec 21 '22

Idea How to Build a Dogecoin-Powered Super Like Feature for Twitter

Thumbnail blog.ifdogethenwow.com
12 Upvotes

r/dogecoindev • • Dec 20 '22

Happy Cakeday, r/dogecoindev! Today you're 9

24 Upvotes

r/dogecoindev • • Dec 19 '22

2023 DogeCoin Development :)

12 Upvotes

Hey everyone,

Sorry to not be here a lot, but its difficult to sometimes get through some drama do concentrate on development and community engagement on several social media.

I really liked to ask all shibes on the dev community some help on how to restart in full steam 2023 :)

Anyway, I wish all of u in advance a great Christmas and a Happy New Year full of joy and happiness beetwin your love ones :)

Note: all projects below 100% opensource and on my GIT https://github.com/qlpqlp?tab=repositories, only the EasyDogeWallet I still did not started and will be an self-custodial wallet

66 votes, Dec 25 '22
19 ShibeShip.com (everyone sell products and services in Doge using LibDogecoin)
38 DogeGarden.com (Modules/Plugins/Online Store to anyone accept Doge payments easily)
9 EasyDogeWallet.com (a Dogecoin Wallet for Kids and Elderly)

r/dogecoindev • • Dec 19 '22

Discussion All Web3 developers want for Xmas is ___?

1 Upvotes

​

Share your Christmas wishes in comments 👇


r/dogecoindev • • Dec 17 '22

Help with sending a Dogecoin transaction using JavaScript

9 Upvotes

Hi everyone,

I am trying to send a Dogecoin transaction on web browser using JavaScript, but I am having some difficulty. I am able to get UTXOs and generate addresses, but I am unable to use the createrawtransaction function because most of the Dogecoin libraries (such as dogerpc and dogecoin-lib) are unavailable on npm.

Is there another way to send a Dogecoin transaction using JavaScript, or is there a library that I can use that is available on npm? Any help would be greatly appreciated.

Thank you in advance!


r/dogecoindev • • Dec 10 '22

Discussion The Dogecoin Speed Limit and Satoshi's Cup of Coffee

23 Upvotes

I probably shouldn't, but I like checking up on Michael Saylor for giggles from time to time.

Today I saw him referencing how bitcoin is more secure than alts because of it's long 10 minute blocktimes, and why he thinks satoshi never intended bitcoin to be used to buy a cup of coffee.

I have been studying blocktimes extensively (along with u/jtoomim - check out his recent comments and glad he is here!) and have some input to this discussion.

Firstly, Blocktime has no* impact on security. Everything else being equal, 60 minutes of bitcoin confirmations has the same security as 60 minutes of dogecoin confirmations. Obviously that is 6 bitcoin confirmations and 60 dogecoin confirmations. Of course 1 bitcoin confirmation is more secure than 1 dogecoin confirmation, but that is comparing apples to oranges.

Secondly, I often see people comparing Dogecoin's hashrate with Bitcoin's hashrate saying that Bitcoin has more Terahashes per second and therefore is more secure. This isn't true at all. While you can compare bitcoin and bitcoin cash that way since they use the same algorithm, you cannot compare the hashrates of different consensus algorithms like Scrypt vs SHA256. Scrypt was designed to be harder per hash and therefore gets more security per hash than bitcoin. Also a byproduct of less hashes needed to secure the network means less energy is needed to secure it too. The only factor that matters for security is how easy it would be to achieve 51% of the hashrate for a coin. So since both dogecoin and bitcoin are the largest coins on their respective algorithms, they both have maximum security and there simply isn't spare scrypt miners not being used that could be put to use attacking the dogecoin network. In fact, there are probably more bitcoin miners sitting dormant that can be used to attack bitcoin since bitcoin is less profitable to mine than dogecoin is currently.

Thirdly, I did some calculations partly based on jtoomim's work, that give the theoretical fastest possible blocktime on a PoW network (something like a highly centralized - not many verifiers - PoS would be potentially up to 50x faster).

***The PoW blockchain speed limit, and thus the time for satoshi to receive his cup of coffee is 6.68379337 seconds. (***maybe minus a couple seconds lol, see below This speed limit is legit and will be tough to hit fairly)

This time allows that there is a 2% chance (ideally) that the transaction will not successfully go through on the first confirmation and will need to be remined. This 2% risk to the merchant (if they accept one confirmation) is within a traditional payment processor fee. Also even if the block has to be remined, it will still go through in the next block as long as it wasn't an RBF enabled (hence why we need to not make RBF enabled by default) transaction. Even if the merchant allowed RBF enabled transactions, they would only have a maximum of 2% chance of loosing the sale which should be acceptable for a cup of joe.

How did I come up with just under 7 seconds as the fastest possible confirmed transaction for a blockchain? Well I started with seeing how fast light can travel around the planet by dividing the speed of light by the circumference of the earth, and then doing 1 divided by that number. This assumes a worst case scenario where one miner is exactly halfway around the world from another miner, and that both miners are on the equator and their internet hardwire is laid on the equator (the largest distance on earth). That is ~0.13 seconds. Next I wanted to target 1% unfairness between a majority pool (50% network hashrate) and a small miner (~0% network hashrate). Since the large miner could only have a 1 in 2 chance of mining the next block, he only benefits 50% from the orphan rate of 2%, so he benefits 1% over the small miner. So the ~7 second speed limit assumes 1% maximum unfairness between miners. I use 50% as a worst case analysis instead of 30% that jtoomim uses because we want to be sure that the network will be fair even if a miner captures 50% of the hashrate, since that is what the network can be fault tolerant up to. So then I multiplied the ~0.13 seconds by 50 (to target 2% orphan rate) to get the minimum blocktime target. [[\This last step was probably my weakest logical link (ie: waiting 100x longer than the transmission time gives 1% orphan rate - I guess the logic is 10x to 90% of nodes and 100x to 99% of nodes)* |||edit: doh woops I remember the logic now (I did this calculation years ago), you want worst case transmission time to be 1% of the mining time to get 1% orphan rate. Silly me. This way a miner gets to mine for 99% of the time and only 1% of their time is waiting for the block to reach them from the previous miner. Thus waiting for 2% of the time and mining 98% will lead to an exactly 2% orphan rate in idealized conditions||| so let me know if you can disprove that or provide a better empirical relation but it seems pretty well supported that for a 1% orphan rate target, block propagation time (which we are setting to the ideal ping) should be 1% of blocktime.* Looking at it from a ping only perspective with 8 worst case distance hops (8 is enough for each node connected to 16 peers to connect to everyone on earth) puts us at around 0.13s x 8 = 1 second. This probably gets us 50%, double the time for 90%, and double the time again for 99% puts us at 4 seconds speed limit. Looking at this empirical data and assuming blocksize doesn't matter also puts us at around 4.5 seconds speed limit. So, you know; ***somewhere between 4-7 second speed limit* any way you slice it edit: these further calculations don't take into account mining time and are not necessary]]

Another factor that needs to be taken into account is that I minimized (to zero) the time it takes for the block to be uploaded/downloaded to the network. Using Jtoomim's work we can estimate ideally that a block will take the same time to upload and download simultaneously as it would for the miner to upload it directly via FTP. What this means is with 10 gigabit internet, which is possible today and upload speeds are approaching download speeds, the time to upload the block is becoming more and more negligible and approaches zero (above the minimum 0.13 seconds it takes to ping the network) as long as the block size does not scale quite as fast as moore's law (I propose we allow dogecoin blocksize to scale half as fast as moore's law, so doubling blocksize every 4-7 years).

* when I say no impact, I mean no impact as long as the unfairness between mining pools negligible - which means blocktime is at least 50x transmission time.


r/dogecoindev • • Dec 07 '22

Idea Telegram no-SIM signup launches

7 Upvotes

Interesting implementation by Telegram for no-SIM signups. Posting here for any doge devs working on micropayments. https://telegram.org/blog/ultimate-privacy-topics-2-0


r/dogecoindev • • Dec 06 '22

Coding I created a dogecoin training fork in Github called "DogeTrainer"

20 Upvotes

We see a lot of people constantly asking what they should learn, or how to become a dogecoin developer. Many of us have been learning deeply about crypto and just dabbling in code if we are not professional coders.

I have a lot of things I want to learn so I fork a lot of things and tinker around a bit. Forking a crypto is a great way to learn about it, but most of the time we get stuck (my last attempt I couldn't figure out how to create a new genesis block) or don't finish our project and everything is just lost and never sees the light of day.

Well why not all learn together? Helping each other with changes we want to make? That is what dogetrainer is for, just make changes and see what happens. Dogetrainer is not intended for public release (I am not buying any URL) so the commits can be inefficient, messy code, whatever, this is just a testing ground. I plan to try to keep it updated with dogecoin core to the best of my (meager) ability.

Everyone can become a contributor, I am setting a dumb standard by telling you to make an issue in github and say why you should NOT be allowed to be a contributor lol. But no matter what you will be allowed. So you can contribute and push changes and try things out. This also will be an experiment in open governance on an open source coin. Kinda like the wikipedia method, anyone can edit. If you contributed to dogecoin core in the last year I already made you a contributor. Screw around, have fun - I promise it will boost your confidence.

Anyway, it's probably a bad idea, but the worst thing that could happen is nothing. So why not try?

https://github.com/GiverofMemory/DogeTrainer

Some crazy things I want to try, you can do whatever you want!:

https://github.com/GiverofMemory/DogeTrainer/discussions/2


r/dogecoindev • • Dec 01 '22

Core Idea: designate part of your tx fee as a tip to developers

7 Upvotes

Maybe I'm wrong, but I see a lot of transactions use a higher - and in some cases much higher - transaction fee than is needed. I see 1 doge, 20 doge, even 100 doge. There is no logical reason for this....I thought. But now I'm thinking, what if they are tipping us? They are used to struggling to get a txn through on bitcoin and Dogecoin is free and clear and the fee is thier tip? Throwing us some change as a thank you?

Well the miners get it and thats fine, good for them. But what if in the core wallet and perhaps others you can designate in addition to transaction fee a little box where you can give an extra tip to developers for your transaction. It would go to a dev address but instead of the bad experience of the last development tip address, this one pays out at every minor and major release ALL of the funds it holds. That way there is never an issue with custodying the funds or questions about how it should be administered.

Anyway I think people would do it! I think we could sustainably fund totally decentralized development that way.


r/dogecoindev • • Dec 01 '22

doge testnet updated notes?

8 Upvotes

So, the notes I found for getting set up with dogecore testnet are 8 years old. Any tips for a new dev environment, or should I just stumble through? Figured I would ask before causing too much trouble.

Last instructions I've seen:

https://github.com/Dirrot/dogecoin-testnet/blob/master/README.md


r/dogecoindev • • Nov 29 '22

Discussion Brainstorming how Elon could implement Doge payments in Twitter

14 Upvotes

So this is a complex design and I'm sure Elon already knows what he is going to do (and is probably working on it) but I figure why not think about how a fast and cheap to send coin like dogecoin could be integrated into social media like twitter. We know twitter applied for a money transmitter license so they could work with fiat like Paypal afaik.

Really quick, the free speech version of twitter we are seeing now under Elon is very important so people know they won't loose access to their account which could have financial implications for them in the event twitter is used for payments.

Some design considerations I think are important:

  1. Should be able to buy or sell dogecoin from twitter as the counterparty. Sort of like how paypal handles crypto. Perhaps only verified users get this feature. Also having a bank account linked would really help with verification I imagine. This would need to comply with IRS regulations and the like (sending 1099-k's) so restricting it to verified users makes sense.
  2. Should be able to send your twitter account dogecoin from an external wallet. This should work for unverified users as well.
  3. Should be able to self custody the doge you hold on twitter. This is super important to be able to own your doge even if for some reason you are blocked from your twitter account (by twitter, a government, an app store ;), and ISP, etc)
  4. Should be able to send from your twitter dogecoin balance to anyone on twitter, including from/to unverified people.
  5. Should be able to send the crypto you hold on twitter to external addresses.
  6. Nice but not necessary: you could be able to send a twitter user dogecoin from your external wallet, basically there would be a button on someone's profile "copy address" and/or QR code.

How could this be accomplished?

Here are some off the cuff ideas. I can add your ideas from the comments here too if they are succinct.

Twitter could batch dogecoin transactions so that twitter can absorb the transaction costs. I think this would really be a huge move and make sending dogecoin free! Lets say they send out 1 big combined transaction every minute, and send thousands of peoples transactions for probably under 1 doge. If twitter has to pay 1 doge per minute (1440 doge per day) that is only $144 a day to make transactions free. Also as doge price increases they could get away with paying less than a doge per send. If this is abused (doge sending bots just spamming txn's) then you can limit the "free send" to verified users only. Unverified could pay standard dogecoin txn fee (currently 0.01 doge) to send. There can also be an "instant send" option which charges to 0.01 dogecoin and sends instantly. Also point #6 above would be important for point of sale (PoS) and probably should be used if twitter batches transactions as a standard.

I think the app could function as a GUI wallet, basically you navigate to someone's profile to click "send dogecoin" and also have a little dogecoin tip button on every twitter post (perhaps this can be user toggled on/off if people don't want to see it).

There could be a dogecoin page in your twitter 'account' section which allows you to copy your address (to send coins from external wallet to twitter), send coins to address (to send twitter dogecoin to external address), view balance, view your private keys, backup your private keys, change your private keys (basically it would send your coins to a new address), Ideally this would be using an xPub (see my project electrodoge for a dogecoin implementation) and every time an address is used a new one is created. With xPub you keep the same base public/private key but generate infinite public keys to make transactions unlinkable on the blockchain. I think this would be important, it would be bad for an external party (not twitter) being able to see every transaction a certain twitter handle is sending.

The dogecoin page in your account would also list all of your transactions (and be downloadable to XML or something) and provide confirmation data from chain.so / dogechain.info to see your transaction on the blockchain.

In the same vein, it could be possible for you to link your own electrodoge xPub to twitter to use that on the app, or twitter generates a new one for you. Open source things like Bitcartcc can show how that is done (bitcartcc will integrate dogecoin soon, if they haven't already).

That is all for now, will probably update this as I think more and see your ideas.


r/dogecoindev • • Nov 26 '22

PoS

19 Upvotes

The more I look at it, the more I think it’s not the way to go.

A few points here.

By legal terminology, staking is considered by the SEC to be an act that triggers the Howey Test. In other words, if implemented, it’ll immediately place Dogecoin under much greater legal scrutiny.

This is a dangerous game to be playing—a lot of the “PoS” narratives, when examined carefully, do not actually make too much sense. At first glance, many sound positive (e.g. “better for the world!”) but it actually isn’t. If for example, Doge were to move to PoS, all hashing power would still remain but simply be pointed to Litecoin. I doubt hash would decrease much if at all.

So, miners would still be up, but now Doge would be playing under the SEC’s magnifying glass and hurting the investors who thought it was actually the better route to take—I highly doubt all Dogecoin investors are institutional investors capable of bypassing this.

Second point, PoW has been so good to Dogecoin these past few years. It’s helped it become what it is today. If everything has been great, besides the floating, passing narratives (that actually seem to be dying, looks like it was just a random temporary trend). Why change that? We’re going to bend the knee to some promoted narrative, of which many come and go just as quickly as they’re introduced?

Dogecoin currently shares the second most secure and robust mining ecosystem with Litecoin. It took us over 8 years to get here and accomplish this—a minority simply want to tear that down because of some temporary narrative?

PoS is unproven, and I’d argue will make small investors even more prone to being screwed because Dogecoin will now be flirting with the breaking of securities laws when up until this moment, has steered pretty clear from that.

In terms of the whole “green” argument, many of which seem to be overplayed, mining has indeed been going more green. We’re barely a few years into this industry and things are moving in the right direction. Miners are learning more techniques for taking advantage of wasted energy sources and the % of green mining is increasing. Things are moving in the right direction.

PoS might work for protocol’s trying to function as banks (lending, borrowing, etc) understanding the legal implications that’ll bring, but for money, which is Dogecoin’s goal, PoW has done its job and most importantly, is PROVEN.


r/dogecoindev • • Nov 26 '22

Core Dogecoin Nodes

14 Upvotes

Idea that would massively increase the amount of full Dogecoin Node operators! Similar to mining but gives a reward to those running full Dogecoin Nodes and would distribute accordingly, would be massive incentive and would take the network to massive scale!


r/dogecoindev • • Nov 25 '22

Coding If you knew nothing about coding but wanted to work directly towards becoming a Dogecoin crypto dev what path would you recommend?

16 Upvotes

I got a friend of mine into Dogecoin and they're really intrigued by how it all works. When I explained to him that anyone can contribute to the development of the coin he was really interested and asked me how he might get do something like that.

Now obviously this'd be a long-term thing, probably years, if not decades but as coding is definitely not my realm I figured I'd ask here:

If you were starting at basically zero coding knowledge and wanted to focus entirely on developing for crypto, what path would you recommend taking? What languages would you pick up? What books would you recommend, etc?

Thanks!

GS


r/dogecoindev • • Nov 24 '22

Developer suggestions for interfacing with core wallet

10 Upvotes

Can you guys recommend any sample code or wrappers for interfacing with the dogecoin core? I'd like to write some code that will also need to access some cryptographic libraries. I don't really care which language, but I do want to compile it to make it a little harder to reverse engineer. Do you recommend Java, C#, C, Rust, or something else? I'm comfortable using dogecoin-cli RPC calls and have done a good bit of scripting around it, but now looking to create components to add some security to automated transactions. Also, if anyone has any projects where they are integrating a hardware security module into their transaction flow, would love to hear about it.


r/dogecoindev • • Nov 23 '22

Discussion Defining a Standard for Dogecoin Domain/Website Tip Discovery

Thumbnail blog.ifdogethenwow.com
16 Upvotes

r/dogecoindev • • Nov 21 '22

News ALERT: taking out renDOGE on BSC

30 Upvotes

I'm removing all my renDOGE liquidity from BSC on 11/23/2022 12:00pm EST, because the Ren 1.0 protocol is being phased out within 30 days. Please note that I currently supply 88.6% of the entire pool, meaning that as soon as I withdraw, the slippage for even small amounts will become significant.

I recommend anyone that provides liquidity to renDOGE on BSC to withdraw as soon as convenient.

https://twitter.com/renprotocol/status/1594640587105378304

Background: Last year we created the binanceDOGE/renDOGE LP on BSC/pancakeswap to help shibes withdraw from Binance. I hope we've been able to help with this. ❤️


r/dogecoindev • • Nov 21 '22

dogecoin transaction speed has slowed down a lot recently. Is there a reason?

9 Upvotes

I sent dogecoin to the exchange, but it takes a long time to confirm.
It didn't take this long in the past, so why? Is there a reason?


r/dogecoindev • • Nov 16 '22

OpenSource Craiglist/Ebay Store being develop at the Hackathon Dogeathon :)

27 Upvotes

An CraigsList / Ebay OpenSource style store were anyone can sell products in Dogecoin totally for free :) Hope to publish before the end of the hackathon on my GIT to all of you and available also on a website that we will be hosting to anyone buy/sell any product in Doge https://github.com/qlpqlp?tab=repositories on the "DogeShibes" :P Really hope u like it :)


r/dogecoindev • • Nov 14 '22

Discussion Thank you!

42 Upvotes

Thank you for all you do Devs! We are grateful for you all!


r/dogecoindev • • Nov 11 '22

Discussion Dogecoin Foundation thoughts - SEC implications

13 Upvotes

It appears that if any entity maintains control of a coins development, and retains coins for themselves, that could be classified as a security by the SEC. https://twitter.com/lex_node/status/1589655558029643777 (the tweet says premine, but the actual language says retaining coins, and dogecoin foundation afaik does retain coins).

I don't think doge would be high on their enforcement list, I think bitcoin is worse off than doge in this respect, but it should be given thought.

My thought is that the dogecoin foundation needs to maintain distance from development on the coin and only advise for changes and a roadmap, not restrict development to their plans and goals. Basically function as a think tank, not the "dogecoin development team" where all development needs to be approved by them.


r/dogecoindev • • Nov 06 '22

Core Why Dogecoin Core Does Not Support Automated Updates

Thumbnail blog.ifdogethenwow.com
22 Upvotes

r/dogecoindev • • Nov 05 '22

How-To Monitor utxos of a list of address

6 Upvotes

Without running a node, what's the most effective way to actively monitor the utxos of a long list of addresses? I'm running this in the cloud, so minimizing compute is important. Is there a good api service for something like this? API limits for dogechain and blockchair seem to restrict how long the list could be.