implement the basic binary parsing logic.

This commit is contained in:
fiatjaf
2023-09-21 18:09:20 -03:00
parent a0d8e40379
commit 619f2cb453
6 changed files with 355 additions and 13 deletions

11
verifier.go Normal file
View File

@@ -0,0 +1,11 @@
package opentimestamps
import (
"github.com/btcsuite/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/wire"
)
type Bitcoin interface {
GetBlockHash(height int64) (*chainhash.Hash, error)
GetBlockHeader(hash *chainhash.Hash) (*wire.BlockHeader, error)
}