Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PublicAddressToByteArray ¶ added in v0.2.0
PublicAddressToByteArray returns []byte address for given PublicKey Address
func PublicKeyToAddress ¶
PublicKeyToAddress returns an ss58 address given a PublicKey see: https://github.com/paritytech/substrate/wiki/External-Address-Format-(SS58) also see: https://github.com/paritytech/substrate/blob/master/primitives/core/src/crypto.rs#L275
Types ¶
type KeyType ¶
type KeyType = string
KeyType str
const Ed25519Type KeyType = "ed25519"
Ed25519Type ed25519
const Secp256k1Type KeyType = "secp256k1"
Secp256k1Type secp256k1
const Sr25519Type KeyType = "sr25519"
Sr25519Type sr25519
const UnknownType KeyType = "unknown"
UnknownType is used by the GenericKeystore
type Keypair ¶
type Keypair interface { Type() KeyType Sign(msg []byte) ([]byte, error) Public() PublicKey Private() PrivateKey }
Keypair interface
Click to show internal directories.
Click to hide internal directories.