monero-ccs-proposals/dangerousfreedom-2023-09.md

46 lines
2.6 KiB
Markdown
Raw Normal View History

2023-09-17 16:22:15 -04:00
---
layout: cp
2023-09-17 16:22:15 -04:00
title: dangerousfreedom - wallet work
author: DangerousFreedom
date: September 17, 2023
2023-09-22 15:45:09 -04:00
amount: 64
2023-09-17 16:22:15 -04:00
milestones:
- name: deliver of proposed demonstrator and wallet functions
funds: 56
done: 30 March 2024
status: finished
2023-09-17 16:22:15 -04:00
payouts:
- date: 10 April 2024
amount: 56
2023-09-17 16:22:15 -04:00
---
## Note amount wasn't updated properly so there is 8 XMR left over from this proposal.
2023-09-17 16:22:15 -04:00
## What and Why ?
2023-09-22 15:45:09 -04:00
The end goal is twofold:
2023-09-17 16:22:15 -04:00
2023-09-22 15:45:09 -04:00
1) Get started with a basic variant to handle transactions both in legacy and seraphis: since a blockchain is made of blocks and blocks are made of transactions, we probably need a class to handle node queries smoothly between the classes `transaction` and `SpTxSquashedV1`. Hopefully this will generate discussions and start paving the way for future works about reading/writing data from/in the blockchain (1/4 of total time).
2) Make a basic but broad demonstrator of the seraphis_wallet by: opening a wallet, make mock transactions, make transaction proofs, show enotes and balance, close wallet. A lot of work has been done in this direction but they are not yet fully organized. So the goal is to have this basic but organized demonstrator capable of doing that (3/4 of total time).
I would work on the following tasks:
- Create the `TransactionVariant = tools::variant<transaction, SpTxSquashedV1>` to handle similar methods of these classes.
- Create unit_tests with legacy and seraphis transactions to test these methods.
2023-09-17 16:22:15 -04:00
- Create basic functions for wallet initialization, program flow and terminal handling.
2023-09-17 16:26:12 -04:00
- Create the basic components of a seraphis_wallet (basically the wallet needs to load/save the `KeyContainer`, `EnoteStore` and `TransactionHistory` components).
2023-09-22 15:45:09 -04:00
- Create basic function to fill `EnoteStore`.
- Use mock transactions like `construct_tx_for_mock_ledger_v1` to create txs.
2023-09-17 16:22:15 -04:00
- Add entries to `TransactionHistory` when a transaction creation is attempted.
- Create terminal functions to show enotes and provide knowledge proofs.
2023-09-22 15:45:09 -04:00
- Close/save wallet and make sure it loads everything when reopened.
2023-09-17 16:22:15 -04:00
All the efforts will be documented and made public on the seraphis_wallet group. Unit_tests will be provided whenever possible.
## Who?
- I did [this](https://repo.getmonero.org/monero-project/ccs-proposals/-/merge_requests/298), [this](https://repo.getmonero.org/monero-project/ccs-proposals/-/merge_requests/344) and [this](https://repo.getmonero.org/monero-project/ccs-proposals/-/merge_requests/377) previous works.
2023-09-22 15:45:09 -04:00
I propose to work for 40 USD per hour, 20h per week, for 12 weeks (or until I finish all the tasks), which makes 64 XMR considering 150 USD/XMR.