Repository navigation
Conversation
lklimek
requested review from
QuantumExplorer,
antouhou and
shumkov
as code owners
December 4, 2023 10:17
Contributor
Author
|
Closed in favor of #1569 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue being fixed or feature implemented
For the rs-sdk testing, we assume that each feature must have relevant test implemented.
Current rs-sdk test framework doesn't support testing of Puts (what includes state transitions).
For example, for testing of Put Identity, rs-sdk MUST be able to execute the following operations:
In order to create state and sign state transition, the Sdk needs code that is currently part of wallet in rs-platform-explorer, expecially
fn registration_transaction(). Suggested change is as follows:Rationale
In rs-sdk we have the following architecture:
Now, I see the wallet as a member of simple services layer, managing addresses and keys - that is, more-or-less CRUD-type operations ("read that address balance", "create new address", etc.). IMO it should have a sub-component that will be a "secure cryptographic device" (ledger/smartcard/trusted chip in phone/...)., but this is out of scope of what we do now.
In this architecture, the role of rs-sdk shall be to compose complex services from simple services - in this particular case, a composite service is implemented in registration_transaction , and IMO it should be part of composite services layer == rs-sdk.
The reason "why" comes from my belief that in most cases, the typical app developer doesn't care about selecting utxo's, determining change addresses, outputs, etc. In essence, the developer doesn't care about all these wallet internals. His goal is to create an identity, and he wants to do it in 2-3 lines, instead of having to understand state transitions, asset locks, utxos, fees, signatures, etc. To me, it all looks confusing when I try to do that, after years of exp in Dash. For newcomers, it's a show-stopper.
However, if a developer wants more control, he should reach out to "simple services" layer and do implementation himself. That's why we designed sdk this way.
So, the goal is to make developer's life as easy as one-two screens of code to create an identity.
What was done?
Draft wallet and example of use in an application - not building yet.
How Has This Been Tested?
Breaking Changes
Checklist:
For repository code-owners and collaborators only