Bitcoin Forum
May 11, 2024, 01:36:53 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Не валидируется подпись в некоторых транk  (Read 1355 times)
mrxtraf (OP)
Member
**
Offline Offline

Activity: 255
Merit: 27


View Profile WWW
January 12, 2017, 12:07:00 PM
 #1

Всем привет.
Парсю "блокчайн", аля свой блок эксплорер делаю.
Либа для кодировки-декодировки и проверки транзакций https://github.com/Bit-Wasp/bitcoin-lib-php
И вот на 100к блоков начали встречаться транзакции, которые не валиридруются, типа подпись не правильная.
Вот эти транзакции.
https://blockchain.info/tx/c99c49da4c38af669dea436d3e73780dfdb6c1ecf9958baa52960e8baee30e73
https://blockchain.info/tx/0ad07700151caa994c0bc3087ad79821adf071978b34b8b3f0838582e45ef305
https://blockchain.info/tx/7c451f68e15303ab3e28450405cfa70f2c2cc9fa29e92cb2d8ed6ca6edb13645
У всех трех, общие выходы, а также sequence = 0

Вопрос.
Как ещё проверить транзакции? Желательно либой с открытым кодом, чтобы можно было разобраться в проблеме.

1715391413
Hero Member
*
Offline Offline

Posts: 1715391413

View Profile Personal Message (Offline)

Ignore
1715391413
Reply with quote  #2

1715391413
Report to moderator
1715391413
Hero Member
*
Offline Offline

Posts: 1715391413

View Profile Personal Message (Offline)

Ignore
1715391413
Reply with quote  #2

1715391413
Report to moderator
The grue lurks in the darkest places of the earth. Its favorite diet is adventurers, but its insatiable appetite is tempered by its fear of light. No grue has ever been seen by the light of day, and few have survived its fearsome jaws to tell the tale.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715391413
Hero Member
*
Offline Offline

Posts: 1715391413

View Profile Personal Message (Offline)

Ignore
1715391413
Reply with quote  #2

1715391413
Report to moderator
1715391413
Hero Member
*
Offline Offline

Posts: 1715391413

View Profile Personal Message (Offline)

Ignore
1715391413
Reply with quote  #2

1715391413
Report to moderator
1715391413
Hero Member
*
Offline Offline

Posts: 1715391413

View Profile Personal Message (Offline)

Ignore
1715391413
Reply with quote  #2

1715391413
Report to moderator
kzv
Legendary
*
Offline Offline

Activity: 1722
Merit: 1285

OpenTrade - Open Source Cryptocurrency Exchange


View Profile WWW
January 12, 2017, 08:32:49 PM
 #2

Всем привет.
Парсю "блокчайн", аля свой блок эксплорер делаю.
Либа для кодировки-декодировки и проверки транзакций https://github.com/Bit-Wasp/bitcoin-lib-php



NB: This library is outdated, and no longer maintained. BC breaks will not be accepted for this reason. For a newer library, please see https://github.com/Bit-Wasp/bitcoin-php

OpenTrade - Open Source Cryptocurrency Exchange
mrxtraf (OP)
Member
**
Offline Offline

Activity: 255
Merit: 27


View Profile WWW
January 13, 2017, 10:04:22 AM
 #3

Новая либа тоже не валидирует, но структура мне там не нравится. Поэтому сам пытаюсь старую поддерживать.
Кстати о первой транзакции c99c49da4c38af669dea436d3e73780dfdb6c1ecf9958baa52960e8baee30e73 есть пару тем на форуме.
Но я не в курил как пофиксить.
kzv
Legendary
*
Offline Offline

Activity: 1722
Merit: 1285

OpenTrade - Open Source Cryptocurrency Exchange


View Profile WWW
January 13, 2017, 07:32:43 PM
 #4

а зачем блокэксплореру валидировать транзакции?

OpenTrade - Open Source Cryptocurrency Exchange
mrxtraf (OP)
Member
**
Offline Offline

Activity: 255
Merit: 27


View Profile WWW
January 13, 2017, 07:57:33 PM
 #5

Потому-что с плюшками, блэкджеком и остальным  Grin
amaclin
Legendary
*
Offline Offline

Activity: 1260
Merit: 1019


View Profile
January 14, 2017, 06:55:57 AM
 #6


а ты учитывал SIG_HASH_TYPE?
в частности, у этой транзакции там стоит 0

3046
0221 00d23459d03ed7e9511a47d13292d3430a04627de6235b6e51a40f9cd386f2abe3
0221 00e7d25b080f0bb8d8d5f878bba7d54ad2fda650ea8d158a33ee3cbd11768191fd 00


как себя должен вести клиент встречая такое значение - надо смотреть в коде
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!