Open
Conversation
…ails for consistency
* rename `audit_trails` folder to `audit-trails-move` * Add folders for audit-trails-rs and audit_trails_wasm
* First implementation of the permission module based on a `Permission` enum * Unit tests for the `Permission` enum * Renamed `AuditTrail::permissions` to `AuditTrail::roles` * Renamed all modules and type-names from plural to singular name * audit_trails -> audit_trail * permissions -> permission * capabilities -> capability
Unit tests are still buggy and will be fixed with the next commit.
…guration structure
Rename MetaDataUpdate to MetadataUpdate Co-authored-by: Yasir <yasir@shariff.dev>
…corresponding tests
…otaledger/notarization into feat/audit-trails-api-roles-management
…e verb-subject format
…-management # Conflicts: # audit-trail-move/sources/locking.move # audit-trails-move/sources/audit_trails.move
…anagement Feat/audit trails api roles management
Audit Trails API
itsyaasir
commented
Jan 5, 2026
Also split of the role and capability management from the AT main module to allow reuse with other products.
…extended # Conflicts: # audit-trail-move/sources/audit_trail.move # audit-trail-move/sources/capability.move # audit-trail-move/tests/capability_tests.move # audit-trail-move/tests/create_audit_trail_tests.move # audit-trail-move/tests/role_tests.move # audit-trail-move/tests/test_utils.move
…-auth fix: enforce tag access checks on record deletion
…ties` sections Both sections need to be reviewed though
…nd-docs' into feat/audit-trails-dev-examples-and-docs
…ng Revoked Capabilities` sections
- Introduce named actor clients across all audit trail examples so each client signs with its own key and capabilities are bound to specific addresses (issued_to) rather than left unrestricted - Add //! ## Actors module-level doc to every example describing each actor's role and permissions - Refactor 01_customs_clearance and 02_clinical_trial to use fully distinct clients per operational role (DocsOperator, ExportBroker, Inspector, Monitor, DataSafetyBoard, etc.) - Replace plain-text document data with SHA-256 hash in customs clearance; add comment about off-chain TWIN node storage - Add section-title comments to customs clearance for easier navigation - Add capability auto-lookup comment to 09_tagged_records - Move records accessor definition ALAP in 06_delete_records - Add localnet eval-based quickstart section to WASM examples README
…amples Each actor now uses its own funded client with a distinct keypair, so capability objects are bound to per-actor addresses and the Move-level access-control is exercised as intended. All examples have structured JSDoc ## Actors sections. The issueTaggedRecordRole helper accepts an explicit issuedTo address parameter.
…t-trail-explicit-capability-selection
Node's crypto.createHash is not available in the browser. The Web Crypto API (crypto.subtle.digest) works in both environments.
…ability-selection feat: add explicit audit trail capability selection
…s-and-docs AT : Rust & TS Examples
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.
Description of change
Links to any relevant issues
Type of change
How the change has been tested
Change checklist