SmartAccountConstants

Cryptographic and protocol-level constants for Smart Account operations.

Properties

Link copied to clipboard
const val ADDRESS_PREFIX_LENGTH: Int = 8

Number of characters of an address used in error-message excerpts.

Link copied to clipboard

Size in bytes of an Ed25519 public key (RFC 8032).

Link copied to clipboard

Size in bytes of an Ed25519 secret key seed (RFC 8032). Equal to ED25519_PUBLIC_KEY_SIZE for Ed25519 — kept as a distinct constant so validations remain semantically accurate.

Link copied to clipboard

Length of a Stellar S-strkey secret seed (Base32 encoding of version + 32-byte seed + 2-byte checksum).

Link copied to clipboard
const val ED25519_SIGNATURE_SIZE: Int = 64

Ed25519 signature length in bytes (RFC 8032).

Link copied to clipboard

Size in bytes of an uncompressed secp256r1 public key (1 prefix byte + 32 x-coordinate + 32 y-coordinate).

Link copied to clipboard

Uncompressed point prefix byte (0x04) as defined in SEC 1 for secp256r1 public keys.