Bitcoin Forum
May 08, 2024, 12:25:39 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Electron Cash fails with "non-canonical DER signature"  (Read 365 times)
elebit (OP)
Sr. Member
****
Offline Offline

Activity: 441
Merit: 250


View Profile
August 20, 2017, 10:54:32 PM
 #1

Sorry for cluttering the Electrum forum with an Electron Cash question, but I was hoping someone who had used it could chime in. Is there an official forum somewhere?

I wanted to split a little bit of BTC into BCH. The first attempt using Electron Cash was successful. The second was not, and resulted in a transaction the server did not accept ("non-canonical DER signature").

Has anyone encountered this problem and knows what the cause might be?

One difference is that the first transaction spent a p2pkh uxto and the second one spent a p2pk. Has anyone spent a pay-to-public-key uxto with Electron Cash and did it work?
1715127939
Hero Member
*
Offline Offline

Posts: 1715127939

View Profile Personal Message (Offline)

Ignore
1715127939
Reply with quote  #2

1715127939
Report to moderator
1715127939
Hero Member
*
Offline Offline

Posts: 1715127939

View Profile Personal Message (Offline)

Ignore
1715127939
Reply with quote  #2

1715127939
Report to moderator
"Bitcoin: mining our own business since 2009" -- Pieter Wuille
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715127939
Hero Member
*
Offline Offline

Posts: 1715127939

View Profile Personal Message (Offline)

Ignore
1715127939
Reply with quote  #2

1715127939
Report to moderator
1715127939
Hero Member
*
Offline Offline

Posts: 1715127939

View Profile Personal Message (Offline)

Ignore
1715127939
Reply with quote  #2

1715127939
Report to moderator
escrow.ms
Legendary
*
Offline Offline

Activity: 1274
Merit: 1004


View Profile
August 21, 2017, 12:10:48 AM
 #2

It won't work, because electron cash was not built from scratch,it's only modified for normal BCH transactions. That's why p2pk and multisig transactions are not working on electron because it does not supports BCH properly and transaction is getting denied by server because it might be using bitcoin blockheader but broadcasting it on bitcoin cash server or vice versa.
pooya87
Legendary
*
Offline Offline

Activity: 3444
Merit: 10555



View Profile
August 21, 2017, 04:40:28 AM
 #3

~
One difference is that the first transaction spent a p2pkh uxto and the second one spent a p2pk. Has anyone spent a pay-to-public-key uxto with Electron Cash and did it work?

there is no "p2pk" as far as i know. there is just P2PKH which means "Pay To Pub Key Hash" which is the usual key pairs which need 1 signature (the address begins with 1).

the other thing is "p2sh" which is "Pay To Script Hash" which is those multi signatures.

and electron cash does not exactly support multisig for the time being: https://github.com/fyookball/electrum/blob/bcc19c6e2c5e37a462bd953adb1187b2b69700b1/RELEASE-NOTES#L77-L84

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
elebit (OP)
Sr. Member
****
Offline Offline

Activity: 441
Merit: 250


View Profile
August 21, 2017, 09:02:05 AM
 #4

It won't work, because electron cash was not built from scratch,it's only modified for normal BCH transactions. That's why p2pk and multisig transactions are not working on electron because it does not supports BCH properly

Electron Cash does not support BCH properly? Who thought it was a good idea to release a half baked crapjob to the public?

If it doesn't support P2PK properly, did I just create a BTC transaction and tried to push it to the BCH network? Would I have lost my money had my Electron been connected to the "wrong" network?

Where can I read more about how the replay protection is supposed to work? Can Electrum show me the transaction in human readable format?

there is no "p2pk" as far as i know. there is just P2PKH

Well now you know then. A grep (or google) will show you what kind of payments Bitcoin can do. Public key and public key hash are the two basic types, then there's stuff like script hash which came later, and tomorrow we'll have witness script hash too.
pooya87
Legendary
*
Offline Offline

Activity: 3444
Merit: 10555



View Profile
August 22, 2017, 03:23:14 AM
 #5

~
Well now you know then. A grep (or google) will show you what kind of payments Bitcoin can do. Public key and public key hash are the two basic types, then there's stuff like script hash which came later, and tomorrow we'll have witness script hash too.

lol, i did google it before i wrote that thing, and also reading the wiki about transaction types there was no mention about p2pk, so my first guess was that you made a simple mistake.

seeing your new comment i dug deeper and found it finally. so thanks i learned a new thing today Smiley

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!