implement the basic binary parsing logic.
This commit is contained in:
11
verifier.go
Normal file
11
verifier.go
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user