-
Notifications
You must be signed in to change notification settings - Fork 50
feat(sdk): add client-side validate_base_structure for document and token transitions #3133
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
Draft
thepastaclaw
wants to merge
14
commits into
dashpay:v3.1-dev
Choose a base branch
from
thepastaclaw:feat/sdk-validate-all-transitions
base: v3.1-dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
4568e47
feat(sdk): add client-side validate_base_structure for document and t…
thepastaclaw e52eb1f
fix: replace unwrap() with safe if-let in validation error handling
thepastaclaw 1ac31c3
style: apply cargo fmt to rs-sdk and rs-dapi
thepastaclaw e47606b
fix(wasm-sdk): add maxLength to indexed rarity field in test fixture
thepastaclaw a39718c
test(sdk): add validate_base_structure error path tests for document …
thepastaclaw b8e5813
test(sdk): add validate_base_structure error path tests for all builders
thepastaclaw c30a1bf
refactor(sdk): remove 5 redundant document nonce-masking tests
thepastaclaw f8cb63a
refactor(sdk): extract validate_batch_base_structure helper to reduce…
thepastaclaw 26d5181
refactor(sdk): extract shared test helpers to reduce test duplication
thepastaclaw 72a0d81
test(sdk): add document builder sign() integration test
thepastaclaw 569a2ca
fix(sdk): log dropped validation errors in validate_batch_base_structure
thepastaclaw ebc6d26
test(sdk): add happy-path sign() tests for all document builders
thepastaclaw 6f7cd0b
test(sdk): add happy-path sign() tests for all token builders
thepastaclaw 6343a25
test(sdk): assert non-empty signature in document builder happy-path …
thepastaclaw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -88,3 +88,4 @@ book/book/ | |
|
|
||
| # gRPC coverage report | ||
| grpc-coverage-report.txt | ||
| worktrees/ | ||
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 Suggestion: 'validation' feature moved from dev-dependencies to unconditional dependency
Previously
validationwas only in[dev-dependencies]for dpp. This PR adds it to the main[dependencies], which pulls injsonschema(custom fork),json-schema-compatibility-validator,platform-value-json, and enablesdashcore/eddsa(ed25519-dalek) for all SDK consumers. The SDK only usesBatchTransition::validate_base_structure()from this feature. Consider gating behind an optional SDK feature flag (e.g.,client-validation) so consumers wanting minimal binary size can opt out.source: unknown
🤖 Fix this with AI agents