suiwallet

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Wallet

type Wallet struct {
	PrivateKey ed25519.PrivateKey
	PublicKey  ed25519.PublicKey
	AuthKey    [32]byte
}

Wallet of sui-block-chain. cpp from https://github.com/ltp456/go-sui-sdk/blob/888bddf15fd06afc11900f54ff39d24db7ffefb9/crypto/ed25519.go#L9

func NewWallet

func NewWallet(seed []byte) (*Wallet, error)

func NewWalletV2 added in v0.0.7

func NewWalletV2(privateKeyHex string) (*Wallet, error)

func (*Wallet) Address

func (kp *Wallet) Address() string

func (*Wallet) Public

func (kp *Wallet) Public() ed25519.PublicKey

func (*Wallet) Sign

func (kp *Wallet) Sign(data []byte) ([]byte, error)

func (*Wallet) Verify

func (kp *Wallet) Verify(message, signature []byte) bool

Jump to

Keyboard shortcuts

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