diff --git a/README.md b/README.md index 145bd67..0526141 100644 --- a/README.md +++ b/README.md @@ -9,16 +9,18 @@ Elliptic Curve Integrated Encryption Scheme for secp256k1, written in Go with ** This is the Go version of [ecies/py](https://github.com/ecies/py) with a built-in class-like secp256k1 API, you may go there for detailed documentation of the mechanism under the hood. ## Install -`go get github.com/ecies/go` +`go get github.com/ecies/go/v2` Go 1.13 is required cause `fmt.Errorf` is used to wrap errors. +> ⚠️ Please use version 2.0.3 and later. It's much faster and safer. + ## Quick Start ```go package main import ( - ecies "github.com/ecies/go" + ecies "github.com/ecies/go/v2" "log" ) diff --git a/go.mod b/go.mod index d3308ff..a3ac46f 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ require ( github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1 github.com/ethereum/go-ethereum v1.10.17 github.com/stretchr/testify v1.7.1 - golang.org/x/crypto v0.0.0-20220131195533-30dcbda58838 + golang.org/x/crypto v0.0.0-20220321153916-2c7772ba3064 ) go 1.13 diff --git a/go.sum b/go.sum index 4ae25f9..f0e4481 100644 --- a/go.sum +++ b/go.sum @@ -330,6 +330,8 @@ golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad/go.mod h1:jdWPYTVW3xRLrWP golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20220131195533-30dcbda58838 h1:71vQrMauZZhcTVK6KdYM+rklehEEwb3E+ZhaE5jrPrE= golang.org/x/crypto v0.0.0-20220131195533-30dcbda58838/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.0.0-20220321153916-2c7772ba3064 h1:S25/rfnfsMVgORT4/J61MJ7rdyseOZOyvLIrZEZ7s6s= +golang.org/x/crypto v0.0.0-20220321153916-2c7772ba3064/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=