- Aggiunge scaffold frontend Vue con UI base e build verso renderer - Introduce backend FastAPI con endpoint generazione e salvataggio JSON - Sposta i generatori in backend e aggiorna CLI main.py - Aggiorna README, requirements e .gitignore per artefatti e config - Configura Electron (main/preload) e script npm per dev/build
38 lines
815 B
Python
38 lines
815 B
Python
import backend.p2pk as p2pk
|
|
import backend.p2pkh as p2pkh
|
|
import backend.p2sh as p2sh
|
|
import backend.p2wpkh as p2wpkh
|
|
import backend.p2tr as p2tr
|
|
|
|
def main():
|
|
print("=== GENERATORE INDIRIZZI BITCOIN ===")
|
|
print("Seleziona il tipo di indirizzo:")
|
|
print("1. P2PK")
|
|
print("2. P2PKH")
|
|
print("3. P2SH")
|
|
print("4. P2WPKH")
|
|
print("5. P2TR")
|
|
|
|
choice = input("Inserisci la tua scelta: ").strip()
|
|
|
|
actions = {
|
|
'1': p2pk.main,
|
|
'2': p2pkh.main,
|
|
'3': p2sh.main,
|
|
'4': p2wpkh.main,
|
|
'5': p2tr.main,
|
|
}
|
|
|
|
action = actions.get(choice)
|
|
if not action:
|
|
print("Scelta non valida.")
|
|
return
|
|
|
|
try:
|
|
action()
|
|
except KeyboardInterrupt:
|
|
print("\nOperazione interrotta.")
|
|
|
|
if __name__ == '__main__':
|
|
main()
|