Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature]: Persist External Key for Seedlings During Minting Process #1319

Open
ffranr opened this issue Jan 23, 2025 · 0 comments
Open

[feature]: Persist External Key for Seedlings During Minting Process #1319

ffranr opened this issue Jan 23, 2025 · 0 comments
Labels
enhancement New feature or request minting ux

Comments

@ffranr
Copy link
Contributor

ffranr commented Jan 23, 2025

When minting using an external key, the minter can assign an external key to each seedling in a batch. The external key is a struct composed of three fields: xpub, master_fingerprint, and derivation_path.

Currently, during the minting process, the MintAsset RPC endpoint is used to add a seedling to the batch and save it to disk. However, the external key associated with the seedling is not being saved to disk. This means the external key does not persist if the process is interrupted or restarted.

To improve the user experience, ensure that the seedling's assigned external key is persisted to the database using the InsertAssetSeedlingIntoBatch function and can be retrieved when needed.

By persisting the external key, the external key will survive a tapd restart between minting steps: MintAsset and FundBatch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request minting ux
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant