Skip to content
Lattice

AccountSignerStorage

Git Source

ERC-7201 namespaced storage for the account's single-owner signer.

Note:

  • storage-location: erc7201:lattice.storage.AccountSigner
struct AccountSignerStorage {
    /// @notice Address owner: an ECDSA EOA/ERC-1271 contract when `_signerType == ECDSA`, a native Hedera
    ///         account when `_signerType == HederaAccount`. Not authoritative for the passkey schemes.
    ///         APPEND-ONLY.
    address _owner;
    /// @notice Active signature scheme as `uint8(SignerType)` (0 == ECDSA). Stored as `uint8`, not the enum,
    ///         so the inspected storage layout is reproducible (`t_enum` carries a non-deterministic solc AST
    ///         id, which breaks the cross-machine layout baseline). Packs into slot 0 above `_owner`. APPEND-ONLY.
    uint8 _signerType;
    /// @notice WebAuthn user-verification policy. Packs into slot 0. APPEND-ONLY.
    bool _requireUV;
    /// @notice P256/WebAuthn public key X. APPEND-ONLY.
    bytes32 _p256X;
    /// @notice P256/WebAuthn public key Y. APPEND-ONLY.
    bytes32 _p256Y;
}

Properties

NameTypeDescription
_owneraddress
_signerTypeuint8
_requireUVbool
_p256Xbytes32
_p256Ybytes32