address

package
v2.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	Script  *types.Script
	Network types.Network
}

func Decode

func Decode(s string) (*Address, error)

func (Address) Encode

func (a Address) Encode() (string, error)

func (Address) EncodeFullBech32 deprecated

func (a Address) EncodeFullBech32() (string, error)

EncodeFullBech32 encodes address in full format with bech32 encoding.

See https://github.com/nervosnetwork/rfcs/blob/master/rfcs/0021-ckb-address-format/0021-ckb-address-format.md for more details.

Deprecated: Use EncodeFullBech32m instead.

func (Address) EncodeFullBech32m

func (a Address) EncodeFullBech32m() (string, error)

EncodeFullBech32m encodes address in full format with bech32m encoding.

See https://github.com/nervosnetwork/rfcs/blob/master/rfcs/0021-ckb-address-format/0021-ckb-address-format.md for more details.

func (Address) EncodeShort deprecated

func (a Address) EncodeShort() (string, error)

EncodeShort encodes address in short format.

See https://github.com/nervosnetwork/rfcs/blob/master/rfcs/0021-ckb-address-format/0021-ckb-address-format.md for more details.

Deprecated: Use EncodeFullBech32m instead.

Jump to

Keyboard shortcuts

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