account

package
v0.0.0-...-10f9118 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SIGNATURE_SCHEME_FLAG_ED25519 = 0x0

	ADDRESS_LENGTH = 40
)

Variables

This section is empty.

Functions

func IsValidAddress

func IsValidAddress(address string) (bool, error)

Types

type Account

type Account struct {
	PrivateKey ed25519.PrivateKey
	PublicKey  ed25519.PublicKey
	Address    string
}

func NewAccount

func NewAccount(seed []byte) *Account

func NewAccountWithMnemonic

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

func (*Account) Sign

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

Jump to

Keyboard shortcuts

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