web3-polkadot-1.0.1.0: Polkadot support for Haskell Web3 library.
CopyrightAleksandr Krupenkin 2016-2024
LicenseApache-2.0
Maintainermail@akru.me
Stabilityexperimental
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Network.Polkadot.Account

Description

Polkadot account types.

Synopsis

Documentation

class Ss58Codec a where Source #

Key that can be encoded to/from SS58.

See https://github.com/paritytech/substrate/wiki/External-Address-Format-(SS58)#address-type for information on the codec.

Methods

from_ss58check :: ByteString -> Either String a Source #

Some if the string is a properly encoded SS58Check address (default prefix).

to_ss58check :: a -> ByteString Source #

Return the ss58-check string for this key (default prefix).

to_ss58check_with_version :: Word16 -> a -> ByteString Source #

Return the ss58-check string for this key.

from_ss58check_with_version :: Word16 -> ByteString -> Either String a Source #

Some if the string is a properly encoded SS58Check address (default prefix).

class IdentifyAccount a where Source #

Some type that is able to be collapsed into an account ID.

It is not possible to recreate the original value from the account ID.

Associated Types

type AccountId a Source #

The account ID that this can be transformed into.

Methods

into_account :: a -> AccountId a Source #

Transform into an account.

Instances

Instances details
IdentifyAccount MultiSigner Source # 
Instance details

Defined in Network.Polkadot.Account

Associated Types

type AccountId MultiSigner Source #

Orphan instances