substrate

package
v0.0.78 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EdgewareMainnet network name.
	EdgewareMainnet = "edgeware-mainnet"

	// EdgewareBeresheet network name.
	EdgewareBeresheet = "edgeware-beresheet"

	// EdgewareLocal network name.
	EdgewareLocal = "edgeware-local"
)

Variables

This section is empty.

Functions

func Networks

func Networks() []string

Networks supported by substrate package.

func SS58AddressFormat

func SS58AddressFormat(network string, pubKey crypto.PublicKey) ([]byte, error)

SS58AddressFormat creates the address `[]byte` from substrate network and a public key.

Types

type PublicKeyFinder

type PublicKeyFinder struct {
}

PublicKeyFinder for substrate.

func NewPublicKeyFinder

func NewPublicKeyFinder() *PublicKeyFinder

NewPublicKeyFinder create a default substrate public key finder.

func (*PublicKeyFinder) PublicKeyFromAddress

func (pkf *PublicKeyFinder) PublicKeyFromAddress(ctx context.Context, protocol, network string, address []byte) (crypto.PublicKey, error)

PublicKeyFromAddress returns the public key from the address.

type Signer added in v0.0.43

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

func NewSigner added in v0.0.43

func NewSigner(privateKey crypto.PrivateKey) *Signer

func (Signer) Sign added in v0.0.43

func (e Signer) Sign(opts signer.Options) (signedTransaction interface{}, err error)

type SignerOptions added in v0.0.43

type SignerOptions struct {
	Extrinsic        types.Extrinsic
	SignatureOptions types.SignatureOptions
}

Jump to

Keyboard shortcuts

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