Bitcoin Forum
May 01, 2024, 02:22:49 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Probleme mit Scripts und checksequenceverify in bitcoin  (Read 234 times)
evolverDE (OP)
Newbie
*
Offline Offline

Activity: 18
Merit: 2


View Profile
September 06, 2022, 07:26:10 PM
Merited by mole0815 (1)
 #1

hallo wertes Forum,
ich arbeite mich gerade in die bitcoin-Thematik ein und habe auch schon erste Lernerfolge erzielen können. Momentan hakt es bei mir mit dem Verständnis über die Sequence in scripts und wollte mal fragen, wie das genau funzt.

Beste Grüße
1714530169
Hero Member
*
Offline Offline

Posts: 1714530169

View Profile Personal Message (Offline)

Ignore
1714530169
Reply with quote  #2

1714530169
Report to moderator
1714530169
Hero Member
*
Offline Offline

Posts: 1714530169

View Profile Personal Message (Offline)

Ignore
1714530169
Reply with quote  #2

1714530169
Report to moderator
1714530169
Hero Member
*
Offline Offline

Posts: 1714530169

View Profile Personal Message (Offline)

Ignore
1714530169
Reply with quote  #2

1714530169
Report to moderator
The block chain is the main innovation of Bitcoin. It is the first distributed timestamping system.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714530169
Hero Member
*
Offline Offline

Posts: 1714530169

View Profile Personal Message (Offline)

Ignore
1714530169
Reply with quote  #2

1714530169
Report to moderator
1714530169
Hero Member
*
Offline Offline

Posts: 1714530169

View Profile Personal Message (Offline)

Ignore
1714530169
Reply with quote  #2

1714530169
Report to moderator
1714530169
Hero Member
*
Offline Offline

Posts: 1714530169

View Profile Personal Message (Offline)

Ignore
1714530169
Reply with quote  #2

1714530169
Report to moderator
evolverDE (OP)
Newbie
*
Offline Offline

Activity: 18
Merit: 2


View Profile
September 07, 2022, 02:58:03 PM
 #2

ich habe mal eine testnet transaktion mit checksequenceverify erstellt:
https://blockstream.info/testnet/tx/ee748de040145e099f17134f251c88a3b0832090754999fca83f76568f70361a?expand

nun wollte ich sie mit der Signatur und dem publickey einlösen, bekomme jedoch immer wieder folgende Meldung mit der ich nichts anfangen kann:
{"result":null,"error":{"code":-26,"message":"non-mandatory-script-verify-flag (Data push larger than necessary)"},"id":1}

kann mir da einer helfen?

Beste Grüße
mole0815
Moderator
Legendary
*
Offline Offline

Activity: 2338
Merit: 2637


Join the world-leading crypto sportsbook NOW!


View Profile
September 09, 2022, 08:41:14 AM
 #3

Herzlich willkommen evolverDE,

persönliche Erfahrungen habe ich damit nicht aber vielleicht hilft dir ein Verweis an diese Stelle weiter?
https://bitcoin.stackexchange.com/questions/95490/error-26-mandatory-script-verify-flag-failed-signature-must-be-zero-for-faile

Auszug davon:
Quote
The problem is that you are serializing the transaction for signing incorrectly. The data that is signed is not just the raw transaction with the sighash appended to it. You need to slightly modify it too. Specifically, for the input currently being signed, you need to put the scriptCode into that input's scriptSig. The scriptSigs of all other inputs must be empty.

The scriptCode is the scriptPubKey of the output being spent by that input except for P2SH. If the output is a P2SH output, then you need to use the redeemScript.

Der Link zeigt noch mehr relevante Infos.
Sonst auch gerne hier lang zu den wirklichen Profis in zu diesen Themen: Development & Technical Discussion (z.B. hier gab es das Thema auch schon)

.
.Duelbits.
█▀▀▀▀▀











█▄▄▄▄▄
TRY OUR
  NEW  UNIQUE
GAMES!
.
..DICE...
███████████████████████████████
███▀▀                     ▀▀███
███    ▄▄▄▄         ▄▄▄▄    ███
███   ██████       ██████   ███
███   ▀████▀       ▀████▀   ███
███                         ███
███                         ███
███                         ███
███   ▄████▄       ▄████▄   ███
███   ██████       ██████   ███
███    ▀▀▀▀         ▀▀▀▀    ███
███▄▄                     ▄▄███
███████████████████████████████
.
.MINES.
███████████████████████████████
████████████████████████▄▀▄████
██████████████▀▄▄▄▀█████▄▀▄████
████████████▀ █████▄▀████ █████
██████████      █████▄▀▀▄██████
███████▀          ▀████████████
█████▀              ▀██████████
█████                ██████████
████▌                ▐█████████
█████                ██████████
██████▄            ▄███████████
████████▄▄      ▄▄█████████████
███████████████████████████████
.
.PLINKO.
███████████████████████████████
█████████▀▀▀       ▀▀▀█████████
██████▀  ▄▄███ ███      ▀██████
█████  ▄▀▀                █████
████  ▀                    ████
███                         ███
███                         ███
███                         ███
████                       ████
█████                     █████
██████▄                 ▄██████
█████████▄▄▄       ▄▄▄█████████
███████████████████████████████
10,000x
MULTIPLIER
NEARLY UP TO
.50%. REWARDS
▀▀▀▀▀█











▄▄▄▄▄█
evolverDE (OP)
Newbie
*
Offline Offline

Activity: 18
Merit: 2


View Profile
February 05, 2023, 01:07:51 PM
 #4

hallo,
erstmal danke für den hilfreichen Link und sorry für das verspätete Melden  Undecided . Ich habe mich mit der Thematik nun etwas auseinandergesetzt und P2PKH funzt auch soweit. Ich häge nun allerdings beim P2SH fest. Dazu habe ich mir ein kleines Tool gebaut, um die Problematik besser analysieren zu können.
https://i.ibb.co/SKVpfbw/error.jpg

ich bekomme immer noch eine Fehlermeldung nach dem Broadcasten. Vllt kann sich das mal ein geschulteres Auge ansehen und mir sagen, was ich dort genau alles falsch mache.

Beste Grüße
evolverDE (OP)
Newbie
*
Offline Offline

Activity: 18
Merit: 2


View Profile
February 05, 2023, 08:17:12 PM
Merited by bct_ail (1)
 #5

ich habe das Problem nun selbst lösen können Cheesy . Es lag am fehlenden/fehlerhaften OP_PUSHDATA1 (vor dem OP_13 im Bild):
https://blockstream.info/testnet/tx/5dce7f2926905bb77886c865310aeb860cabf91adbbc821d991cc8b9ada5ca49?expand

bct_ail
Legendary
*
Offline Offline

Activity: 2618
Merit: 2217


https://t1p.de/6ghrf


View Profile WWW
February 09, 2023, 01:20:16 PM
Merited by mole0815 (1)
 #6

ich habe das Problem nun selbst lösen können

Ich habe zwar keinen blassen Schimmer von was du da schreibst. Aber es ist schön, dass du selber zur Lösung gefunden hast.
Ausserdem finde ich es klasse, dass du dich zurückmeldest und die Lösung schreibst. Viele User, die weniger aktiv sind, melden sich meistens nie wieder. Vielleicht hast du ja Lust hier nun öfters zu sein, da du in deinem Anfangspost geschrieben hast, dass du dich in die Bitcointhematik einarbeitest und dafür ist dieses Forum wie geschaffen.

.
 airbet 
██
██
██
██
██
██
██
██
██
██
██
██
██
 .

▄████▄▄▄██████▄
███████████████
███████████████
███████▀▀▀▀████
██████████████
▀███▀███████▄██
██████████▄███
██████████████
███████████████
███████████████
██████████████
█████▐████████
██████▀███████▀
▄███████████████▄
████████████████
█░██████████████
████████████████
████████████████
█████████████████
█████████████████
███████░█░███████
████████████████
█████████████████
██████████████░█
████████████████
▀███████████████▀
.
.
.
.
██▄▄▄
████████▄▄
██████▀▀████▄
██████▄░░████▄
██████████████
████████░░▀███▌
░████████▄▄████
██████████████▌
███░░░█████████
█████████░░░██▀
░░░███████████▀
██████░░░██▀
░░▀▀███▀

   
|.
....
██
██
██
██
██
██
██
██
██
██
██
██
██
.
 PLAY NOW 
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!