Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

publickey.go file is broken #43

Open
BladeRunner713 opened this issue Oct 25, 2024 · 1 comment
Open

publickey.go file is broken #43

BladeRunner713 opened this issue Oct 25, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@BladeRunner713
Copy link

BladeRunner713 commented Oct 25, 2024

Provide Your Environment

golang 1.22

Describe the bug

publickey.go file is broken, missing some funciton declearation and incorrect return values.
I would like to use VerifyPersonalMessage function inside publickey.go, but I found the file is broken at mutliple lines and the project fails to start.

Steps or screenshots to reproduce the behavior

  1. Go to publickey.go under ed25519 package

Expected behavior

A clear and concise description of what you expected to happen.

Additional context

Add any other context about the problem here.

@BladeRunner713 BladeRunner713 added the bug Something isn't working label Oct 25, 2024
@BladeRunner713 BladeRunner713 changed the title pub publickey.go file is broken Oct 25, 2024
@hwnprsd
Copy link

hwnprsd commented Dec 23, 2024

Here is a log:

  ../../../../../go/pkg/mod/github.com/block-vision/sui-go-sdk@v1.0.6/keypairs/ed25519/publickey.go:31:9:
  too many return values
        have (string, bool, error)
        want (bool, error)
  ../../../../../go/pkg/mod/github.com/block-vision/sui-go-sdk@v1.0.6/keypairs/ed25519/publickey.go:31:35:
  cannot use signature (variable of type []byte) as string value in argument to
  VerifyMessage
  ../../../../../go/pkg/mod/github.com/block-vision/sui-go-sdk@v1.0.6/keypairs/ed25519/publickey.go:36:18:
  undefined: NewMessageWithIntent
  ../../../../../go/pkg/mod/github.com/block-vision/sui-go-sdk@v1.0.6/keypairs/ed25519/publickey.go:38:30:
  undefined: FromSerializedSignature
  ../../../../../go/pkg/mod/github.com/block-vision/sui-go-sdk@v1.0.6/keypairs/ed25519/publickey.go:55:27:
  undefined: SigFlagEd25519
  # github.com/block-vision/sui-go-sdk/zklogin
  ../../../../../go/pkg/mod/github.com/block-vision/sui-go-sdk@v1.0.6/zklogin/publickey.go:54:26:
  undefined: mystenbcs.ToHex
  ../../../../../go/pkg/mod/github.com/block-vision/sui-go-sdk@v1.0.6/zklogin/publickey.go:54:42:
  undefined: mystenbcs.Blake2b
  ../../../../../go/pkg/mod/github.com/block-vision/sui-go-sdk@v1.0.6/zklogin/publickey.go:54:52:
  p.toSuiBytes undefined (type *ZkLoginPublicIdentifier has no field or method
  toSuiBytes)
  : exit status 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants