account

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ADDRESS_LENGTH = 64
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	KeyPair sui_types.SuiKeyPair
	Address string
}

func NewAccount

func NewAccount(scheme sui_types.SignatureScheme, seed []byte) *Account

func NewAccountWithKeystore

func NewAccountWithKeystore(keystore string) (*Account, error)

func NewAccountWithMnemonic

func NewAccountWithMnemonic(mnemonic string) (*Account, error)

func (*Account) Sign

func (a *Account) Sign(data []byte) []byte

func (*Account) SignSecureWithoutEncode

func (a *Account) SignSecureWithoutEncode(msg lib.Base64Data, intent sui_types.Intent) (sui_types.Signature, error)

Jump to

Keyboard shortcuts

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