Home / Docs / Accounts & Keys

Accounts & Keys

Every XE account is an ed25519 key pair. The public key, hex-encoded (64 hex chars / 32 bytes), is the account address. No prefixes, no checksums.

Key Generation

kp, err := core.GenerateKeyPair()        // random
kp := core.KeyPairFromSeed(seed)         // deterministic from 32-byte seed

Block Signing

  1. Canonical encoding via MarshalBlockCanonical()
  2. SHA-256 hash → b.Hash
  3. ed25519.Sign(privateKey, hashBytes)b.Signature

Multisig Accounts

Delegation

Each block includes an optional Representative field. Empty means keep current delegation. Only XUSD balances contribute to delegation weight.