Skip to content

Commit

Permalink
chore: update data-layer-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
Dancia committed Jul 8, 2024
1 parent 2a9ac61 commit cc0ae52
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions cmd/ethereum-publisher/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"github.com/synternet/data-layer-sdk/pkg/network"
"github.com/synternet/data-layer-sdk/pkg/options"
"github.com/synternet/data-layer-sdk/pkg/service"
"github.com/synternet/data-layer-sdk/pkg/user"

svc "github.com/synternet/ethereum-publisher/internal/service"
"github.com/synternet/ethereum-publisher/pkg/ipc"
Expand Down Expand Up @@ -52,9 +53,9 @@ func main() {
// Sacrifice some security for the sake of user experience by allowing to
// supply NATS account NKey instead of passing created user NKey and user JWS.
if *flagNatsAccNkey != "" {
nkey, jwt, err := options.CreateUser(*flagNatsAccNkey)
flagNatsNkey = nkey
flagNatsJwt = jwt
nkey, jwt, err := user.CreateCreds([]byte(*flagNatsAccNkey))
flagNatsNkey = &nkey
flagNatsJwt = &jwt

if err != nil {
panic(fmt.Errorf("failed to generate user JWT: %w", err))
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ require (
github.com/hashicorp/golang-lru/v2 v2.0.2
github.com/json-iterator/go v1.1.12
github.com/nats-io/nats.go v1.35.0
github.com/synternet/data-layer-sdk v0.3.1
github.com/synternet/data-layer-sdk v0.4.1
)

require (
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ github.com/supranational/blst v0.3.11 h1:LyU6FolezeWAhvQk0k6O/d49jqgO52MSDDfYgbe
github.com/supranational/blst v0.3.11/go.mod h1:jZJtfjgudtNl4en1tzwPIV3KjUnQUvG3/j+w+fVonLw=
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 h1:epCh84lMvA70Z7CTTCmYQn2CKbY8j86K7/FAIr141uY=
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7/go.mod h1:q4W45IWZaF22tdD+VEXcAWRA037jwmWEB5VWYORlTpc=
github.com/synternet/data-layer-sdk v0.3.1 h1:xPVZttYFiVY4gIKveFaoQHXYyt3E4ODOur81eW1RaSE=
github.com/synternet/data-layer-sdk v0.3.1/go.mod h1:iHEVwnB8bpTRtMMiahVX5fGP/P4toHNIB6xsCstsCFM=
github.com/synternet/data-layer-sdk v0.4.1 h1:ssLB00nCAjnVYIGSl0EfPbdVf+GugpzKLIEfU0pwg3Y=
github.com/synternet/data-layer-sdk v0.4.1/go.mod h1:iHEVwnB8bpTRtMMiahVX5fGP/P4toHNIB6xsCstsCFM=
github.com/tklauser/go-sysconf v0.3.12 h1:0QaGUFOdQaIVdPgfITYzaTegZvdCjmYO52cSFAEVmqU=
github.com/tklauser/go-sysconf v0.3.12/go.mod h1:Ho14jnntGE1fpdOqQEEaiKRpvIavV0hSfmBq8nJbHYI=
github.com/tklauser/numcpus v0.6.1 h1:ng9scYS7az0Bk4OZLvrNXNSAO2Pxr1XXRAPyjhIx+Fk=
Expand Down

0 comments on commit cc0ae52

Please sign in to comment.