mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-05-14 20:19:51 +00:00
16 lines
346 B
Python
16 lines
346 B
Python
from .. import constants
|
|
from ..card_interface import CardInterface
|
|
from ..preconditions import require_selected
|
|
|
|
|
|
@require_selected
|
|
def factory_reset(card: CardInterface) -> None:
|
|
'''
|
|
Sends the FACTORY_RESET command to the card.
|
|
'''
|
|
card.send_apdu(
|
|
ins=constants.INS_FACTORY_RESET,
|
|
p1=0xAA,
|
|
p2=0x55
|
|
)
|