sample

package
v0.0.0-...-e3796e8 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccAddress

func AccAddress() string

AccAddress returns a sample account address

func AddressBz

func AddressBz() []byte

AddressBz returns a slice of base64 encoded bytes representing an address.

Types

type Account

type Account struct {
	Address   string
	AddressBz []byte
}

Account represents a bech32/bech32m encoded address and the base256 encoded slice of bytes representing said address.

func TestAccount

func TestAccount() Account

TestAccount returns an Account representing a newly generated PubKey in the bech32 format.

func TestAccountBech32m

func TestAccountBech32m() Account

TestAccount returns an Account representing a newly generated PubKey in the bech32m format.

Jump to

Keyboard shortcuts

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