Why Double Spends on BCH Are Not the Same as Replace-By-Fee Fraud

By January 3, 2020 DApps
Click here to view original web page at news.bitcoin.com
Why Double Spends on BCH Are Not the Same as Replace-By-Fee Fraud

When it comes to creating a peer-to-peer electronic cash system, accepting zero confirmation transactions becomes critically important. When a model’s main aim is to “just hodl” or push an isolated store of value narrative, important concerns like double spending can take a back seat, potentially opening a network to serious attack. A recent video demonstrating this risk saw some claiming such weaknesses are equally exploitable on the BCH chain. However, as the Replace-By-Fee (RBF) protocol isn’t part of the BCH codebase, the claims can be easily refuted and as such, the BCH community has been speaking out.

Also Read: Travelbybit to Drop Bitcoin Payments After Viral Double Spend Video

A double spend is just what it sounds like — spending the same bitcoin twice. Of course, this is a favorable proposition to bad actors, scammers and thieves, who are more than happy to make off with goods without paying a service provider or merchant. In essence, double spending involves spending bitcoin, then sending the same money back to oneself before the transaction is etched into the blockchain via sufficient confirmations.

Bitcoinbch.com CEO, Hayden Otto, recently demonstrated this flaw in a video, showing a merchant’s point-of-sale (POS) device confirm that his BTC payment had been sent, and then walking off slyly with his bucket of champagne only to reverse the payment moments later. Of course, the merchant had agreed to the experiment prior, and all funds were returned, but the humorous demonstration successfully showcased a decidedly unfunny problem with RBF and Bitcoin Core.

Why Double Spends on BCH Are Not the Same as Replace-By-Fee Fraud
A sly Otto makes off with the goods via a BCT double spend.

Replace-By-Fee Fraud vs. Other Double Spend Instances

As BCH community member kilrcola writes in his recent read.cash post:

There was a great deal of chatter on this topic on social media – Reddit, Twitter and Facebook. The reasoning for this follow up was – the main defense I saw online was: ‘Zero Confirmations on BCH were equally as bad as Double Spending on BTC.’

Kilrcola goes on to clarify that “there is a big difference between a perceived double spend (on BCH) when there is two TX sent at the same time and a double spend on BTC where the sender sends two TX the first one, and then the second TX minutes later after he has purchased something, allowing the spender to leave the brick and mortar shop or online store without the merchant realizing what has happened.”

Why Double Spends on BCH Are Not the Same as Replace-By-Fee Fraud

In other words, as there is no RBF protocol allowing a transaction to be replaced by another with a higher fee in Bitcoin Cash, for a successful double spend to occur, two payments would have to be sent simultaneously or near simultaneously. Bitcoin Core’s RBF function can provide minutes, hours or conceivably days for a bad actor to double send a transaction. The difference is trying to pull the scam in front of a vendor and not be detected (via some serious blockchain acrobatics), or having ample time to take your goods and walk out the door, planning the double spend for later. Kilrcola clarifies:

Yes Double spends on BCH are possible, in the real world they are very hard to do (we’re talking 1 out of 3992 attempts where the tx was not broadcast simultaneously, 0.025% chance) and because on BCH it is possible to mitigate with a Point-of-sale system design where the merchant can detect it, it is substantially more difficult to attempt a Double Spend on BCH than on BTC.

The 1 out of 3,992 figure comes from doublespend.cash, a statistics and informational resource on BCH double spends created by developer Dagur. As noted on his page, “Double spend can happen for various reasons. A wallet may not be fully synced. Software bugs. Someone having fun. One of the reasons can is fraud attempts. Double spending attempts are relatively rare compared to the total amount of transactions on the network.” Even critics of BCH and Otto’s video have acknowledged this, albeit while adding their own creative interpretations of Dagur’s data.

One such article reads: “In BCH you don’t necessarily have to wait [for confirmations] if it’s a dinner, with the successful double spends being far less than 1% based on some 50,000 BCH transactions in just the past 24 hours.”

What’s not noted by these critics and reactionary voices, however, is that the percentage of successful double spends listed on doublespend.cash mostly comprises simultaneous double spend instances whose motivations or causes are unknown. Delayed double spending on BCH, such as can be demonstrated on BTC via RBF, only stretches out to mere seconds and almost never happens.

Why Double Spends on BCH Are Not the Same as Replace-By-Fee Fraud
Successful delayed double spends form only a fraction of a fraction of attempts. Attempts (malicious or otherwise) themselves are relatively small compared to total BCH transactions. Source: https://doublespend.cash/stats.html

For example, in the month of December there were more than 1.1 million BCH transactions. Double spend attempts — which could be malicious or otherwise as noted above by Dagur — for the same month were only 5,499 according to the data, and in almost every case the acknowledged first seen transaction won, and was mined into the blockchain. Only a miniscule portion of the number of successful double spends were delayed, and when they were, it was only by a matter of one or two seconds, not minutes or hours.

Twitter user @Vnumeris laid into the statistics, tweeting: “According to https://doublespend.cash/stats.html (a site that tracks 2x spends on bcash), the chances for a successful double-spend on bcash in the past 7 days averages out to be a staggering 13.5%. Between 11-18 Dec, there were 1,185 2x spend attempts, out of which 160 were successful.” Dagur retorted:

Why Double Spends on BCH Are Not the Same as Replace-By-Fee Fraud

Otto, for his part, replied:

Go double spend it [BCH] at a real world merchant and show the video. I have been asking people to do this for years and nobody can rise to the challenge, maybe because it’s impossible.

Why Double Spends on BCH Are Not the Same as Replace-By-Fee Fraud

Transparency Makes for Easy Targets, but Greater Reliability

While the data may be presented creatively and criticized harshly by detractors, and BCH hasn’t yet achieved the market cap or hashrate of BTC, the BCH community continues to provide transparent resources — such as Dagur’s site — as well as innovative solutions and answers to issues that need attention.

Kilrcola, also known as Michael Nunzio, notes at the end of his article that “The difference is that on BTC you can effectively, purchase an item in-store, walk out of the store, double spend it and be off with your items. This is the difference. Compare it to attempting to defraud a merchant while standing in front of them while paying for your coffee, vs. attempting it after walking out of the shop. It is also worth mentioning there is some development going on by those in the BCH community to improve the security of 0-conf with Double Spend Proofs, ZKSnarks.”

Dagur further observes: “After receiving a transaction, if you monitor the network for double spends for only a few seconds before accepting it as valid payment, you’ll drastically reduce the acceptance risk, as this is the time needed for most of the network to see your transaction first.”

What are your thoughts on Hayden Otto’s video and the double spend controversy surrounding RBF? Let us know in the comments section below.

Image credits: Shutterstock, fair use.

Want to create your own secure cold storage paper wallet? Check our tools section. You can also enjoy the easiest way to buy Bitcoin online with us. Download your free Bitcoin wallet and head to our Purchase Bitcoin page where you can buy BCH and BTC securely.


South Korea Imposes $69M Tax Obligation on Crypto Exchange Bithumb
Ethereum Proponent Virgil Griffith Deemed a Flight Risk, Judge Denies Bail
Wazirx CEO on 2020 Outlook, RBI Ban, Crypto Regulation for India
Coinbase Wallet Removing Mobile Dapp Browser to Comply With Apple
Coinbase Wallet Removing Mobile Dapp Browser to Comply With Apple
Central Bank Gold Hoarding Hits 50-Year High
Central Bank Gold Hoarding Hits 50-Year High
French Businessman Detained for Stealing €1.2 Million in Crypto From His Partners
French Businessman Detained for Stealing €1.2 Million in Crypto From His Partners
You Can Now Buy Cryptocurrency With Credit Card on Bitcoin.com Exchange
Google Bans Crypto App Metamask From Play Store
Google Bans Crypto App Metamask From Play Store
Market Update: Crypto Traders Search for Bullish and Bearish Trends

Indian Government's Institute Offers Blockchain Training in Multiple Cities
France's Social Media Stalking Points to the Violence of Fiat, Consent of Crypto
Cloud Token and the Rise of MLM Crypto Projects
Cloud Token and the Rise of MLM Crypto Projects
Authorities in Sichuan Go After Miners to Save Electricity in the Dry Season
Harsh Laws Make Bitcoin Holders Consider Renunciation or Dual Citizenship
Asia’s Love Affair With Blockchain Is Blossoming
Asia’s Love Affair With Blockchain Is Blossoming
Mainstream Media's Hit Piece on Hitmen Fails Miserably
Mainstream Media's Hit Piece on Hitmen Fails Miserably
User Reports Reveal Visa and Mastercard Outages During the Holidays
As FATF Regulations Galvanize, Crypto Mixing Applications Are Targeted

4 Beijing Regulators Issue New Crypto Activity Warning
4 Beijing Regulators Issue New Crypto Activity Warning
Crypto’s Counterpunch to U.S. Hegemony and Empire
Germans Rush to Buy Gold as Draft Bill Threatens to Restrict Purchases
Germans Rush to Buy Gold as Draft Bill Threatens to Restrict Purchases
Shenzhen Stock Exchange Launches Index of Top 50 Blockchain Public Companies
Bitcoin Gained 8.9 Million Percent Over the Last Decade
Bitcoin Gained 8.9 Million Percent Over the Last Decade
Bitmain and Canaan to Reveal 5nm Bitcoin Mining Chips in 2020
Bitmain and Canaan to Reveal 5nm Bitcoin Mining Chips in 2020
Japan Hosting World Conference to Discuss Decentralized Financial Governance
Youtube 'Christmas Purge' Has Content Creators Pointing to These Alternate Platforms
Russia’s Supreme Court Recognizes Tokens as Assets Like Money and Property

Close to 14,000 Google Scholar Articles Mentioned Bitcoin in 2019
7 Steel Crypto Wallets That Withstand Extreme Fire and Water Damage
Someone Redeemed a 100 BTC Casascius Bar Worth Over $700K
Someone Redeemed a 100 BTC Casascius Bar Worth Over $700K
A Bitcoin War Is Brewing Over KYC
A Bitcoin War Is Brewing Over KYC
Banking Platform Cashaa Sees Indian Trading Volume Soar, Adding 5 More Cryptocurrencies
Greek Court Suspends Decision to Extradite Alexander Vinnik
Greek Court Suspends Decision to Extradite Alexander Vinnik
Chinese Police Seize Thousands of Miners, Arrest Dozens of Scammers
Chinese Police Seize Thousands of Miners, Arrest Dozens of Scammers
2019 Google and Yahoo Searches for Bitcoin Decline Significantly
2019 Google and Yahoo Searches for Bitcoin Decline Significantly
Utorg Exchange Grants Access to Traders With Limited Verification
Utorg Exchange Grants Access to Traders With Limited Verification

Getting In and Out of the Cryptocurrency Economy Can Be Costly
Wirex CEO Pavel Matveev Shares Expansion Plans for 2020
Cashshuffle and the SLP Token Universe Shined Brightly in 2019
Cashshuffle and the SLP Token Universe Shined Brightly in 2019
Speculation Abounds Regarding Youtube's Removal of Crypto Content
Crypto Confronts Social Justice Warriors 
Crypto Confronts Social Justice Warriors
Uzbekistan Bans Citizens From Buying Crypto, They Can Only Sell
Uzbekistan Bans Citizens From Buying Crypto, They Can Only Sell
Coinbase Closes Earn.com One Year After $100M Acquisition
Coinbase Closes Earn.com One Year After $100M Acquisition
Thomson Reuters Launches Crypto Tax Tool
Thomson Reuters Launches Crypto Tax Tool
Mnuchin Affirms $1.5 Trillion Unaccounted For, Still Demands Strict Bitcoin Regulation
Mnuchin Affirms $1.5 Trillion Unaccounted For, Still Demands Strict Bitcoin Regulation

Regulatory Roundup: New US Crypto Bill, France's 1st Approved ICO, Muslim Crypto
Lawmakers Want Answers From IRS, Citing Major Issues With Crypto Tax Guidance
Lawmakers Want Answers From IRS, Citing Major Issues With Crypto Tax Guidance
PBOC Official: China’s Digital Yuan Won’t Be a Speculative Currency Like Bitcoin
Only 375 Days Left for McAfee's $1M Bitcoin Price Wager
Only 375 Days Left for McAfee's $1M Bitcoin Price Wager
These Myth-Busting Articles Dispel Common Bitcoin Myths
These Myth-Busting Articles Dispel Common Bitcoin Myths
Boerse Stuttgart and SBI Partner to Expand Crypto Services in Europe and Asia
Why Quantum Computing’s Threat to Crypto May Be Further out Than Previously Thought
Meet Snowglobe: An Avalanche-Based Pre-Consensus Protocol for BCH
Poloniex Restores Unverified Accounts With Unlimited Trading
Poloniex Restores Unverified Accounts With Unlimited Trading

Bybit CEO Ben Zhou on Crypto Derivatives and Market Predictions for 2020
Craig Wright Attempts to 'Reveal the Origin' of Satoshi Nakamoto's Name
Craig Wright Attempts to 'Reveal the Origin' of Satoshi Nakamoto's Name
Fomo3D Team Launch New Dapp That’s ‘Not Just a Game’
Judge Rules Snowden Must Give Book Proceeds to US Government
Judge Rules Snowden Must Give Book Proceeds to US Government
P2P Crypto Trading App Allows You to Protect Your Privacy
P2P Crypto Trading App Allows You to Protect Your Privacy
Iran, Turkey, Malaysia Discuss Creating Unified Muslim Cryptocurrency
$100M of Ethereum Tied to Plustoken Scam Sparks Wild Theories
Fortress Renews Offer to Buy Mt Gox Claims for $778 per Coin
Fortress Renews Offer to Buy Mt Gox Claims for $778 per Coin
Chinese Regulators Question 8 Crypto Companies in Shenzhen
Chinese Regulators Question 8 Crypto Companies in Shenzhen

The Many Facts Pointing to Ian Grigg Being Satoshi
The Many Facts Pointing to Ian Grigg Being Satoshi
BCH Is An A-Class Crypto for Auditability
You Can Earn Lead Tokens by Becoming a Crypto Community Champion
Reports Criticize Bitcoin SV Miners and the Chain's Upcoming Fork
Reports Criticize Bitcoin SV Miners and the Chain's Upcoming Fork
Cybersecurity Firm Cybavo Adds SLP Token Support to Its Wallet Management Platforms
European Central Bank's CBDC Borrows Bitcoin's Pseudo-Anonymity
European Central Bank's CBDC Borrows Bitcoin's Pseudo-Anonymity
Travelbybit to Drop Bitcoin Payments After Viral Double Spend Video
Crypto Experts Give Their Top Predictions for 2020
Crypto Experts Give Their Top Predictions for 2020
Russian Opposition Leader Navalny Raises $700,000 in Crypto Donations

SEC to Boost Access to Crypto Investments With Proposed New Accredited Investor Definition
France Approves First ICO
France Approves First ICO
Whales Control Most of Litecoin, Many Ethereum Tokens
Whales Control Most of Litecoin, Many Ethereum Tokens
Bailouts From Asia to the EU Signal Recession and Potential Crypto Opportunity
Bitcoin History Part 22: The New Wealthy Elite
Bitcoin History Part 22: The New Wealthy Elite
Australia Probes Big Four Bank Accused of 23 Million Money Laundering Breaches
Video Shows How Easy It Is to Double Spend BTC Using RBF
Video Shows How Easy It Is to Double Spend BTC Using RBF
Erisx Launches Regulated Bitcoin Futures Market
Erisx Launches Regulated Bitcoin Futures Market
Market Update: Bears Claw Crypto Prices Below Long-Term Support
Market Update: Bears Claw Crypto Prices Below Long-Term Support

Indian Crypto Community Gathers to Dispel Confusion About Regulation
Fidelity Launching Crypto Services in Europe, Citing 'Significant Interest'
Indian State of Kerala to Produce 20,000 Blockchain Specialists in 2 Years
Kleiman Estate Asks Judge to Overrule Craig Wright's Objections
Kleiman Estate Asks Judge to Overrule Craig Wright's Objections
Plustoken Cash-Outs Could Be Behind BTC Price Drop, Says Report
Plustoken Cash-Outs Could Be Behind BTC Price Drop, Says Report
Mining Pool Simplecoin and Interactive Faucet Chopcoin Shut Down Due to EU Regulations
Ciphertrace Says Banks Unknowingly Process $2 Billion in Crypto per Year
Mystery Surrounds DDoS Attacks That Have Downed the Darknet
Mystery Surrounds DDoS Attacks That Have Downed the Darknet
Poles Hit With Backdated Tax on Crypto Trades
Poles Hit With Backdated Tax on Crypto Trades

Regulatory Roundup: Crypto 'Inevitable' in India, China Rankings, NY Streamlines Policy
‘DNA-of-Things’ Technology Can Store Bitcoin Passwords in Everyday Objects
German Banks Increasingly Charging Retail Clients Negative Interest Rates
Uphold Users Gain Access to Salt’s Crypto-Backed Loans
Uphold Users Gain Access to Salt’s Crypto-Backed Loans
Here’s What Happens When You Use Lightning Network for the First Time
Here’s What Happens When You Use Lightning Network for the First Time
Seth King Re-Print: Protocol, Networks, Law, and Anarchism
Seth King Re-Print: Protocol, Networks, Law, and Anarchism
Maduro Plans to Airdrop Petro to Municipal Leaders and Eligible Citizens
How SLP Dividends Can Tokenize Anything, Including the Stock Market
Bitcoin.com Exchange Lists More Tokens for Trading
Bitcoin.com Exchange Lists More Tokens for Trading

Indian Lawmaker Says 'Cryptocurrency Is Inevitable'
Indian Lawmaker Says 'Cryptocurrency Is Inevitable'
European AML Directive Pushes Crypto Startup Bottle Pay Out of Business
Bloxroute Releases Blockchain Distribution Network for Ethereum and Bitcoin Cash
Russia's Hydra Darknet Marketplace Plans $146M Token Sale
This Week in Bitcoin: $8 Billion BTC Trust and Maximalists Misbehaving
This Week in Bitcoin: $8 Billion BTC Trust and Maximalists Misbehaving
Quadrigacx Founder Dead or Alive? Request for Exhumation and Autopsy Filed
Christmas Comes Early for Bitcoin.com Games Players
Christmas Comes Early for Bitcoin.com Games Players
The Country With Europe's Highest Interest Rate Has Cut It 5 Times This Year
2019's Bitcoin Miners Are 5x Faster Than Predecessors
2019's Bitcoin Miners Are 5x Faster Than Predecessors

Searching for Synthetix: Which Token Will Be Next Year’s 50x Winner?
Lightning Network Wiki Page Faces Removal for Lack of Notability
Lightning Network Wiki Page Faces Removal for Lack of Notability
Lagarde Sees Demand for Stablecoins, Plans to Put ECB 'Ahead of the Curve'
Iran, Hong Kong, India: Failed Protests Point to Need for Crypto-Anarchy ‘Second Realms’
Mainstream Investment Vehicles Tied to Cryptocurrencies Grow Exponentially
German Fintechs Rush to Offer Crypto Custody Services Under New Law
Mining Report Shows 65% of Bitcoin's Hashpower Stems From China
Croatian Post Launches Crypto Exchange Service at 55 Branches
Croatian Post Launches Crypto Exchange Service at 55 Branches
15 Million Debit Cards Exposed as Iranian Banks Fall Victim to Cyber Warfare
15 Million Debit Cards Exposed as Iranian Banks Fall Victim to Cyber Warfare

NY Regulator Proposes New Coin Listing Requirements
IDEG Reports Launch of New Bitcoin Trusts in Asia With Coinbase as Custodian
China’s Inflation Hits a Record 4.5% as Beijing Prepares to Test Digital Yuan
China’s Inflation Hits a Record 4.5% as Beijing Prepares to Test Digital Yuan
SLP Token Market Cap Surpasses $50 Million
SLP Token Market Cap Surpasses $50 Million
AI Research Reveals Crypto Leaders Are Angry and Depressed
AI Research Reveals Crypto Leaders Are Angry and Depressed
BRD's Adam Traidman on New Products, Crypto Adoption, and Banking the Unbanked Into 2020
BRD's Adam Traidman on New Products, Crypto Adoption, and Banking the Unbanked Into 2020
Market Update: Despite Uncertainty, BTC Longs Skyrocket
Market Update: Despite Uncertainty, BTC Longs Skyrocket
Denmark's Tax Authority Sends Warning Letters to 20,000 Crypto Owners
Sweden's Financial Authority Approves Swiss Crypto ETP Provider Amun

The State Encourages ICO Fraud. The Free Market Minimizes It  
The State Encourages ICO Fraud. The Free Market Minimizes It
Ross Ulbricht Uses Elliot Waves to Predict Bitcoin’s Trajectory From Behind Bars
Italians Love Cash But Are Growing Fond of Crypto, New Stats Suggest

Italians Love Cash But Are Growing Fond of Crypto, New Stats Suggest

CBD Coffee Company Leverages Censorship-Resistant Nature of Crypto
Accused Onecoin Co-Conspirators Fight Criminal Charges in the US
Accused Onecoin Co-Conspirators Fight Criminal Charges in the US

UP Alliance Members to Lock Mega-Utility Tokens for a Year
UP Alliance Members to Lock Mega-Utility Tokens for a Year
Bitcoin Mining Operations Offer New Strategies Before Reward Reduction
23 Days Until a Bonded Courier Supposedly Delivers Keys to $8 Billion in BTC
Nexo Now Offers Bitcoin Cash Instant Crypto Credit Lines
Nexo Now Offers Bitcoin Cash Instant Crypto Credit Lines
IRS Now Requires Tax Filers to Disclose Crypto Activities
IRS Now Requires Tax Filers to Disclose Crypto Activities
Regulatory Roundup: Bitcoin Futures Fund Approved, India's RBI-Backed Digital Currency
Weiss Ratings Downgrades EOS  to 'C-'
Weiss Ratings Downgrades EOS to 'C-'
New Ukrainian Law Says ‘Virtual Assets’ Can Be Used for Payments
New Ukrainian Law Says ‘Virtual Assets’ Can Be Used for Payments
A List of Self-Proclaimed Bitcoin Inventors and Satoshi Clues Debunked in 2019

Beam, BCH, BTC, Zcash to Halve Inflation Next Year
Deutsche Bank Strategist Predicts Crypto Could Replace Fiat Money
Deutsche Bank Strategist Predicts Crypto Could Replace Fiat Money
Buy Presents or a Christmas Trip Using Gift Cards Purchased With Crypto
Bitcoin Cash Represents 93% of November's Crypto Spending in Australia
The Crypto Anarchist Manifesto
The Crypto Anarchist Manifesto
While Markets Move Sideways, Crypto Whale Sightings Increase
While Markets Move Sideways, Crypto Whale Sightings Increase
SEC Approves Bitcoin Futures Fund
SEC Approves Bitcoin Futures Fund
Boerse Stuttgart's Crypto Exchange Live for All Traders in Germany
Boerse Stuttgart's Crypto Exchange Live for All Traders in Germany
Ross Ulbricht Clemency Petition Gathers 250,000 Signatures
Ross Ulbricht Clemency Petition Gathers 250,000 Signatures

Chicago Company Mines at Oil Wells, Educates Producers About Bitcoin
Bitcoin Cash 2019: Year in Review
EU Finance Ministers Place Defacto Ban on Libra
EU Finance Ministers Place Defacto Ban on Libra
Venture Capitalists Have Invested Over $200M in Stablecoins
Venture Capitalists Have Invested Over $200M in Stablecoins
Mining Chip Maker Ebang Next in Line to File for US IPO
Mining Chip Maker Ebang Next in Line to File for US IPO
Almost 70 Crypto Funds Close This Year, Twice as Many Launch
Almost 70 Crypto Funds Close This Year, Twice as Many Launch
Tron and Poloniex Relationship Scrutinized After Digibyte Delisting
Tron and Poloniex Relationship Scrutinized After Digibyte Delisting
The Politics of Destruction
The Politics of Destruction
ECB Nominee Blames Resistance to Negative Rates on Financial Illiteracy

Blockfi Launches Crypto Trading Platform
RBI Governor Discusses Crypto and Central Bank Digital Currency
RBI Governor Discusses Crypto and Central Bank Digital Currency
Crypto Startups to Get up to $75,000 From the Government of Ukraine
Circle Warns Poloniex US Customer Assets May Be Sent to the Government
Cryptocurrency Exchanges Are Fighting to Escape Binance’s Shadow
Onecoin Websites Suspended as the $4 Billion Ponzi Crumbles
Onecoin Websites Suspended as the $4 Billion Ponzi Crumbles
The Fed's Money Creation System Is Fueling One of the Biggest Heists in History
The Many Facts Pointing to Shinichi Being Satoshi
The Many Facts Pointing to Shinichi Being Satoshi
$4 Billion US Fintech Startup Sofi Receives New York Bitlicense
$4 Billion US Fintech Startup Sofi Receives New York Bitlicense

Leave a Reply