wallet

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Overview

Package wallet implements the go-perun Wallet interface for substrate.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAcc

func IsAcc(acc pwallet.Account) bool

IsAcc returns whether a Perun Account has the expected Account type.

func IsAddr

func IsAddr(acc pwallet.Address) bool

IsAddr returns whether a Perun Address has the expected Address type.

Types

type Account

type Account interface {
	pwallet.Account

	substrate.ExtSigner
}

Account defines a Perun Account with substrate specific functions.

func AsAcc

func AsAcc(acc pwallet.Account) Account

AsAcc returns a Perun Account as Account. Panics if the conversion failed.

type Address

type Address interface {
	pwallet.Address

	AccountID() types.AccountID
}

Address defines a Perun Address with substrate specific functions.

func AsAddr

func AsAddr(acc pwallet.Address) Address

AsAddr returns a Perun Address as Address. Panics if the conversion failed.

Directories

Path Synopsis
Package sr25519 implements go-perun's wallet interface for the polkadot backend.
Package sr25519 implements go-perun's wallet interface for the polkadot backend.
test
Package test provides helper and setup functions to test the sr25519 wallet.
Package test provides helper and setup functions to test the sr25519 wallet.

Jump to

Keyboard shortcuts

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