SmartAccountConstants
public enum SmartAccountConstants
Cryptographic and protocol-level constants used by Smart Account operations.
These constants describe public-key sizes and prefix bytes for the signature schemes supported by the Smart Account contracts. They are exposed as a namespace so callers can reference them when constructing or validating signer key material without duplicating magic numbers.
-
Size in bytes of an Ed25519 public key as defined by RFC 8032.
Declaration
Swift
public static let ed25519PublicKeySize: Int -
Size in bytes of an Ed25519 secret seed as defined by RFC 8032.
Declaration
Swift
public static let ed25519SecretSeedSize: Int -
Size in bytes of a raw Ed25519 signature (the on-wire
BytesN<64>payload the Ed25519 verifier contract expects).Declaration
Swift
public static let ed25519SignatureSize: Int -
Size in bytes of an uncompressed secp256r1 public key.
Layout: 1 prefix byte (
0x04) + 32-byte x-coordinate + 32-byte y-coordinate.Declaration
Swift
public static let secp256r1PublicKeySize: Int -
Uncompressed point prefix byte (
0x04) for secp256r1 public keys, as defined in SEC 1.Declaration
Swift
public static let uncompressedPubkeyPrefix: UInt8
View on GitHub
Install in Dash