Skip to content

Commit dc5fa28

Browse files
Add public constructor in client/bitcoin
1 parent d84c886 commit dc5fa28

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

opentimestamps/client/bitcoin.go

+6
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ type BitcoinAttestationVerifier struct {
1515
btcrpcClient *btcrpcclient.Client
1616
}
1717

18+
func NewBitcoinAttestationVerifier(
19+
c *btcrpcclient.Client,
20+
) *BitcoinAttestationVerifier {
21+
return &BitcoinAttestationVerifier{c}
22+
}
23+
1824
// VerifyAttestation checks a BitcoinAttestation using a given hash digest. It
1925
// returns the time of the block if the verification succeeds, an error
2026
// otherwise.

0 commit comments

Comments
 (0)