A method for stacking at least two similar handheld electronic devices, each comprising a screen arranged on a chassis made of a non-magnetic material, in particular hardware wallets for cold storage of cryptographic keys from a blockchain, the method comprising:
- a step of fitting each device with at least four magnets designed to cooperate magnetically with four magnets of the similar device, whether the device is arranged above or below a considered device, and
- a step of arranging each magnet asymmetrically relative to a longitudinal center axis and/or relative to a transverse center axis of the chassis, to form a magnetic keying allowing a stack in which the same edges of the chassis of the devices are aligned and in which each magnet of one device faces the corresponding magnet of the other device.