HORIZON HASKELLDocslts/ghc-9.14.xd82dee82026-10-12Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · d82dee8 · 2026-10-12

Modulesolana-haskell-sdk-1.3.0.0GHC2021

Network.Solana.Core.Crypto

Wrappers around Crypto.Sign.Ed25519 providing the core cryptographic types: SolanaPublicKey, SolanaPrivateKey and SolanaSignature. All three show as the Base58 strings used across the Solana ecosystem.

  • 3 types
  • 23 values
newtypenewtype SolanaPublicKey
#

A 32-byte Ed25519 public key: the address of an account, program or signer. Show and the JSON instances use the Base58 rendering; the IsString instance is partial (see unsafeSolanaPublicKey).

Instances9Eq, Ord, Show, IsString, Binary, FromJSON, …
newtypenewtype SolanaPrivateKey
#

A 64-byte Ed25519 secret key (seed plus public key, NaCl layout). Show renders it in Base58 — avoid logging values of this type.

Instances3Eq, Ord, Show
newtypenewtype SolanaSignature
#

A 64-byte detached Ed25519 signature. Show and the JSON instances use the Base58 rendering.

Instances6Eq, Ord, Show, Binary, FromJSON, ToJSON

Encode a byte string as Base58 text (Bitcoin alphabet), the encoding Solana uses for addresses, signatures and hashes.

Decode Base64 text leniently: invalid characters are skipped rather than reported, so this never fails but may silently accept malformed input.