diff --git a/esplora.go b/esplora.go index 410820b..3b116a9 100644 --- a/esplora.go +++ b/esplora.go @@ -9,9 +9,10 @@ import ( "strconv" "strings" + "slices" + "github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/btcsuite/btcd/wire" - "golang.org/x/exp/slices" ) func NewEsploraClient(url string) Bitcoin { diff --git a/go.mod b/go.mod index 83b6e99..8ac1acf 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,6 @@ require ( github.com/btcsuite/btcd v0.23.4 github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 golang.org/x/crypto v0.13.0 - golang.org/x/exp v0.0.0-20230905200255-921286631fa9 ) require ( diff --git a/go.sum b/go.sum index ee537ef..fa4156f 100644 --- a/go.sum +++ b/go.sum @@ -66,8 +66,6 @@ golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACk golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.13.0 h1:mvySKfSWJ+UKUii46M40LOvyWfN0s2U+46/jDd0e6Ck= golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliYc= -golang.org/x/exp v0.0.0-20230905200255-921286631fa9 h1:GoHiUyI/Tp2nVkLI2mCxVkOjsbSXD66ic0XW0js0R9g= -golang.org/x/exp v0.0.0-20230905200255-921286631fa9/go.mod h1:S2oDrQGGwySpoQPVqRShND87VCbxmc6bL1Yd2oYrm6k= golang.org/x/net v0.0.0-20180719180050-a680a1efc54d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= diff --git a/helpers.go b/helpers.go index 356ecb3..eb5dfc6 100644 --- a/helpers.go +++ b/helpers.go @@ -3,7 +3,7 @@ package opentimestamps import ( "strings" - "golang.org/x/exp/slices" + "slices" ) // CompareInstructions returns negative if ab. diff --git a/ots.go b/ots.go index 29ecaf2..49f9f6c 100644 --- a/ots.go +++ b/ots.go @@ -6,7 +6,7 @@ import ( "fmt" "strings" - "golang.org/x/exp/slices" + "slices" ) /* diff --git a/parsers.go b/parsers.go index 54d0e4c..d144e4d 100644 --- a/parsers.go +++ b/parsers.go @@ -4,7 +4,7 @@ import ( "fmt" "io" - "golang.org/x/exp/slices" + "slices" ) func parseCalendarServerResponse(buf Buffer) (Sequence, error) { diff --git a/verifier.go b/verifier.go index 1108a11..c179299 100644 --- a/verifier.go +++ b/verifier.go @@ -3,9 +3,10 @@ package opentimestamps import ( "fmt" + "slices" + "github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/btcsuite/btcd/wire" - "golang.org/x/exp/slices" ) type Bitcoin interface {