mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-22 11:24:19 +01:00
mint: add seed decrypt (#403)
* mint: add seed decrypt * add mint seed decryoption and migration tool
This commit is contained in:
@@ -518,12 +518,14 @@ class LedgerCrudSqlite(LedgerCrud):
|
||||
await (conn or db).execute( # type: ignore
|
||||
f"""
|
||||
INSERT INTO {table_with_schema(db, 'keysets')}
|
||||
(id, seed, derivation_path, valid_from, valid_to, first_seen, active, version, unit)
|
||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
|
||||
(id, seed, encrypted_seed, seed_encryption_method, derivation_path, valid_from, valid_to, first_seen, active, version, unit)
|
||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
||||
""",
|
||||
(
|
||||
keyset.id,
|
||||
keyset.seed,
|
||||
keyset.encrypted_seed,
|
||||
keyset.seed_encryption_method,
|
||||
keyset.derivation_path,
|
||||
keyset.valid_from or timestamp_now(db),
|
||||
keyset.valid_to or timestamp_now(db),
|
||||
|
||||
Reference in New Issue
Block a user