aptosaccount

package
v0.0.0-...-c246823 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateMultisignerAuthKey

func GenerateMultisignerAuthKey(publicKeys [][]byte, threshold int) ([32]byte, error)

func GetOldVersionPrivateKeyWithMnemonic

func GetOldVersionPrivateKeyWithMnemonic(mnemonic string) ([]byte, error)

GetOldVersionPrivateKeyWithMnemonic Deprecated

func Sign

func Sign(privateKey ed25519.PrivateKey, data []byte, salt string) []byte

func Verify

func Verify(publicKey, message, signature []byte) bool

Types

type Account

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

func NewAccount

func NewAccount(seed []byte) *Account

func NewAccountWithMnemonic

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

func (*Account) Sign

func (a *Account) Sign(data []byte, salt string) []byte

Jump to

Keyboard shortcuts

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