ed25519

package
v1.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ed25519PublicKeyToSuiAddress

func Ed25519PublicKeyToSuiAddress(pubKey []byte) string

func VerifyMessage

func VerifyMessage(message, signature string, scope constant.IntentScope) (signer string, pass bool, err error)

Types

type Ed25519PublicKey

type Ed25519PublicKey struct {
	// contains filtered or unexported fields
}

func NewEd25519PublicKey

func NewEd25519PublicKey(signature []byte) *Ed25519PublicKey

func (*Ed25519PublicKey) ToSuiAddress

func (e *Ed25519PublicKey) ToSuiAddress() string

func (*Ed25519PublicKey) VerifyPersonalMessage

func (e *Ed25519PublicKey) VerifyPersonalMessage(message []byte, signature []byte, client *graphql.Client) (bool, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL