account

package
v0.0.0-...-3e49bf5 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

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

Account is an abstraction around a cosmos-sdk private-key (account)

func NewAccount

func NewAccount() *Account

NewAccount returns a new account, with a randomly generated private-key.

func (*Account) Address

func (a *Account) Address() sdk.AccAddress

Address returns the address of the account.

func (*Account) Equals

func (acc *Account) Equals(acc2 Account) bool

func (*Account) PrivKey

func (a *Account) PrivKey() cryptotypes.PrivKey

PrivKey returns the private-key of the account.

func (*Account) PubKey

func (a *Account) PubKey() cryptotypes.PubKey

PubKey returns the public-key of the account.

Jump to

Keyboard shortcuts

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