StrKey

object StrKey

StrKey is a helper class for encoding and decoding Stellar keys to/from strings. Stellar uses a base32 encoding with checksums called "strkey" for human-readable keys.

Functions

Link copied to clipboard

Decodes strkey claimable balance ID (B...) to raw bytes

Link copied to clipboard

Decodes strkey contract address (C...) to raw bytes

Link copied to clipboard

Decodes strkey ed25519 public key (G...) to raw bytes

Link copied to clipboard

Decodes strkey ed25519 secret seed (S...) to raw bytes

Link copied to clipboard

Decodes strkey liquidity pool ID (L...) to raw bytes

Link copied to clipboard

Decodes strkey muxed ed25519 public key (M...) to raw bytes

Link copied to clipboard

Decodes strkey pre-authorized transaction hash (T...) to raw bytes

Link copied to clipboard

Decodes strkey SHA-256 hash (X...) to raw bytes

Link copied to clipboard

Decodes strkey signed payload (P...) to raw bytes

Link copied to clipboard

Encodes raw bytes to strkey claimable balance ID (B...)

Link copied to clipboard

Encodes raw bytes to strkey contract address (C...)

Link copied to clipboard

Encodes raw bytes to strkey ed25519 public key (G...)

Link copied to clipboard

Encodes raw bytes to strkey ed25519 secret seed (S...)

Link copied to clipboard

Encodes raw bytes to strkey liquidity pool ID (L...)

Link copied to clipboard

Encodes raw bytes to strkey muxed ed25519 public key (M...)

Link copied to clipboard

Encodes raw bytes to strkey pre-authorized transaction hash (T...)

Link copied to clipboard

Encodes raw bytes to strkey SHA-256 hash (X...)

Link copied to clipboard

Encodes raw bytes to strkey signed payload (P...)

Link copied to clipboard
fun isValidClaimableBalance(claimableBalanceId: String): Boolean

Checks validity of claimable balance ID (B...)

Link copied to clipboard

Checks validity of contract address (C...)

Link copied to clipboard

Checks validity of Stellar account ID (G...)

Link copied to clipboard

Checks validity of seed (S...)

Link copied to clipboard
fun isValidLiquidityPool(liquidityPoolId: String): Boolean

Checks validity of liquidity pool ID (L...)

Link copied to clipboard
fun isValidMed25519PublicKey(med25519PublicKey: String): Boolean

Checks validity of muxed ed25519 public key (M...)

Link copied to clipboard

Checks validity of pre-authorized transaction hash (T...)

Link copied to clipboard
fun isValidSha256Hash(sha256Hash: String): Boolean

Checks validity of SHA-256 hash (X...)

Link copied to clipboard
fun isValidSignedPayload(signedPayload: String): Boolean

Checks validity of signed payload (P...)