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

Generalize Wallets and Fix Receiving Key Encoding #33

Merged
merged 3 commits into from
Mar 12, 2022

Conversation

bhgomes
Copy link
Contributor

@bhgomes bhgomes commented Mar 3, 2022

Generalizes simulation for all wallets of the form Wallet<C, L, S> for where C is the transfer configuration, L is the ledger connection, and S is the signer connection. This allows for testing with more interaction complexity like substrate in-memory ledger, full node ledger, full signer, etc. To build your own simulation see how the manta-pay/src/simulation/mod.rs file runs the new generalized simulation and copy the overall pattern.

The receiving key encoding is the following:

ReceivingKey { spend: G, view: G } => x-coordinates: [u8;32] + [u8;32] => [u8;64] => base58 ~88 characters

@bhgomes bhgomes changed the title fix: use correct receiving key encoding Generalize Wallets and Fix Receiving Key Encoding Mar 3, 2022
@bhgomes bhgomes requested a review from stechu March 3, 2022 21:15
@stechu stechu merged commit 7e6c21b into main Mar 12, 2022
@stechu stechu deleted the fix-receiving-key-encoding branch March 12, 2022 01:15
tsunrise pushed a commit that referenced this pull request Mar 18, 2022
* feat: generalize simulation to all wallets

* fix: use correct feature requirements for simulation

* fix: use correct receiving key encoding
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants