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

Feat/identity rebased #1428

Closed
wants to merge 74 commits into from
Closed

Feat/identity rebased #1428

wants to merge 74 commits into from

Conversation

eike-hass
Copy link
Collaborator

Description of change

Please write a summary of your changes and why you made them.

Links to any relevant issues

Be sure to reference any related issues by adding fixes issue #.

Type of change

Add an x to the boxes that are relevant to your changes.

  • Bug fix (a non-breaking change which fixes an issue)
  • Enhancement (a non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Fix

How the change has been tested

Describe the tests that you ran to verify your changes.
Make sure to provide instructions for the maintainer as well as any relevant configurations.

Change checklist

Add an x to the boxes that are relevant to your changes.

  • I have followed the contribution guidelines for this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

wulfraem and others added 30 commits May 3, 2024 17:00
identity-iota move package, DID Document Obj, MigrationRegistry Obj
* add initial resolving for migrated and undmigrated alias did docs

* fix issues after merge conflicts
* test harness & integration tests

* naming, removed unused script
* add initial resolving for migrated and undmigrated alias did docs

* fix issues after merge conflicts

* add resolving of new documents, resolve documents in parallel

* test harness & integration tests

* naming, removed unused script

* move kinesis did resolval to new project, add tests

* refactor error mapping (apply review suggestion)

* add missing license headers

* fix test document sharing, add missing license header

---------

Co-authored-by: Enrico Marconi <[email protected]>
* add initial resolving for migrated and undmigrated alias did docs

* fix issues after merge conflicts

* add resolving of new documents, resolve documents in parallel

* test harness & integration tests

* naming, removed unused script

* move kinesis did resolval to new project, add tests

* refactor error mapping (apply review suggestion)

* add missing license headers

* fix test document sharing, add missing license header

* disable resolver integration of kinesis crate

* add publishing and tests, error handling still to be done

* add error handling

* refactor `publish_did` fn into smaller helper functions

* remove outdated signing code and tests

* refactor config to make singing arguments optinal when resolving dids

* add did resolving to client

* remove oudated comments

* Update identity_sui_name_tbd/src/client.rs

Co-authored-by: Enrico Marconi <[email protected]>

---------

Co-authored-by: Enrico Marconi <[email protected]>
Co-authored-by: Enrico Marconi <[email protected]>
* multiple controllers, add controller request

* remove controller & factor out common operation for did change requests

* tests

* rename Document to Identity, unwrap assets, verify threshold when presenting request

* update document request

* add Identity::new_with_controller

* transfer control request

* integrate with rust code

* remove stronghold snapshots & print

* enhancement of multi controller proposal inspired by kraken

* chore: add tests

* chore: add migrate alias test

* review comments, proposal's expiration & test

* chore: fix migrate alias test

* chore: fix tests

* chore: address review comments

* Rust glue code

* chore: add non did doc tests

* resolve identities instead of bytes

* on chain identity creation

* update identity did document

* test client

* add (raw) document publishing via signer example

* add support for publishing of new documents, example

* add feature flag for kinesis integration

* add resolve example

* update example folder structure

- split into `iota` and `kinesis` folders (names tbd)

* add non-did-modifying basic examples

* add non-updating, non-chain advanced examples

* bump copyright years in new examples

* update sui/kinesis/iota dependencies

- update dependency on `sui`/`kinesis` components to `iota` (and update names of those components)
- update dependency on `iota-sdk` to `iota-sdk-classic` in tbd project

* add attempt to fix `initial_shared_version` arg

* update examples and resolve to fit structure update after merge

* apply clippy suggestions

* update `secret-storage` dependency to git branch

* fix dependencies in iota (legacy) examples

* fix unwraps and anyhows in client

* update tests to follow integration update

* fix examples after client update

* rename alias `iota-sdk-classic` to `iota-sdk-legacy`

* cleanup dependencies

* add did update example, update argument handling in update impl

* add capability reloading to allow passing it in consecutive tx

* add did deactivation

* add revoke vc example

* update "kinesis" naming:

- `KinesisKeySignature` -> `IotaKeySignature`
- `Error::DIDResolutionErrorKinesis` -> `Error::DIDResolutionError`

---------

Co-authored-by: Enrico Marconi <[email protected]>
Co-authored-by: Yasir <[email protected]>
Co-authored-by: Yasir <[email protected]>
* multiple controllers, add controller request

* remove controller & factor out common operation for did change requests

* tests

* rename Document to Identity, unwrap assets, verify threshold when presenting request

* update document request

* add Identity::new_with_controller

* transfer control request

* integrate with rust code

* remove stronghold snapshots & print

* enhancement of multi controller proposal inspired by kraken

* chore: add tests

* chore: add migrate alias test

* review comments, proposal's expiration & test

* chore: fix migrate alias test

* chore: fix tests

* chore: address review comments

* Rust glue code

* chore: add non did doc tests

* resolve identities instead of bytes

* on chain identity creation

* update identity did document

* test client

* add (raw) document publishing via signer example

* add support for publishing of new documents, example

* add feature flag for kinesis integration

* add resolve example

* update example folder structure

- split into `iota` and `kinesis` folders (names tbd)

* add non-did-modifying basic examples

* add non-updating, non-chain advanced examples

* bump copyright years in new examples

* update sui/kinesis/iota dependencies

- update dependency on `sui`/`kinesis` components to `iota` (and update names of those components)
- update dependency on `iota-sdk` to `iota-sdk-classic` in tbd project

* add attempt to fix `initial_shared_version` arg

* update examples and resolve to fit structure update after merge

* apply clippy suggestions

* update `secret-storage` dependency to git branch

* fix dependencies in iota (legacy) examples

* fix unwraps and anyhows in client

* update tests to follow integration update

* fix examples after client update

* rename alias `iota-sdk-classic` to `iota-sdk-legacy`

* cleanup dependencies

* add did update example, update argument handling in update impl

* add capability reloading to allow passing it in consecutive tx

* add did deactivation

* add revoke vc example

* add history example and impl

* update "kinesis" naming:

- `KinesisKeySignature` -> `IotaKeySignature`
- `Error::DIDResolutionErrorKinesis` -> `Error::DIDResolutionError`

* update error handling

- remove panics
- align ptb.pure and ptb.obj error handling
- align identifier parsing

* remove unwraps in non-test code

* add domain linkage example

* add paging to history example

---------

Co-authored-by: Enrico Marconi <[email protected]>
Co-authored-by: Yasir <[email protected]>
Co-authored-by: Yasir <[email protected]>
…#12)

* multiple controllers, add controller request

* remove controller & factor out common operation for did change requests

* tests

* rename Document to Identity, unwrap assets, verify threshold when presenting request

* update document request

* add Identity::new_with_controller

* transfer control request

* integrate with rust code

* remove stronghold snapshots & print

* enhancement of multi controller proposal inspired by kraken

* chore: add tests

* chore: add migrate alias test

* review comments, proposal's expiration & test

* chore: fix migrate alias test

* chore: fix tests

* chore: address review comments

* Rust glue code

* chore: add non did doc tests

* resolve identities instead of bytes

* on chain identity creation

* update identity did document

* test client

* update sui/kinesis/iota dependencies

- update dependency on `sui`/`kinesis` components to `iota` (and update names of those components)
- update dependency on `iota-sdk` to `iota-sdk-classic` in tbd project

* add attempt to fix `initial_shared_version` arg

* Feat/authenticated asset (#9)

* AuthenticatedAsset & TransferProposal

* use proposal for trasfering AuthenticatedAssets

* authenticated asset creation

* transfer of assets between addresses

* transfer proposal conclusion

* refinement

* update mutable asset

* delete asset

* fix bug, refinement

* approval of proposals

* propose config change glue code

* execute proposal, test config change

* proposal refactor

* fix move tests

* allow chained execution of proposals

* documentation for ProposalResult

* adapt merged code

* export request_funds for examples

* Update examples/iota/Cargo.toml

Co-authored-by: wulfraem <[email protected]>

* Update identity_iota_core/Cargo.toml

Co-authored-by: wulfraem <[email protected]>

* fix logic for propose_modify

---------

Co-authored-by: Yasir <[email protected]>
Co-authored-by: Yasir <[email protected]>
Co-authored-by: Sebastian Wolfram <[email protected]>
* client refactor

* add package_id to client construction

* rename secret_storage's error import

* Update identity_storage/src/storage/storage_signer.rs

Co-authored-by: wulfraem <[email protected]>

* review comments

* Update identity_sui_name_tbd/src/client/read_only.rs

Co-authored-by: wulfraem <[email protected]>

---------

Co-authored-by: wulfraem <[email protected]>
* client refactor

* publish VCs

* add move struct, validate credential in test

* add package_id to client construction

* rename secret_storage's error import

* Update identity_storage/src/storage/storage_signer.rs

Co-authored-by: wulfraem <[email protected]>

* review comments

* clippy & fmt

---------

Co-authored-by: wulfraem <[email protected]>
* identity refactor

* apply new tx design to authenticated assets

* switch to new transaction model

* use max gas budget instead of u64::max

* [feat] Public Available Credential (#16)

* client refactor

* publish VCs

* add move struct, validate credential in test

* add package_id to client construction

* rename secret_storage's error import

* Update identity_storage/src/storage/storage_signer.rs

Co-authored-by: wulfraem <[email protected]>

* review comments

* clippy & fmt

---------

Co-authored-by: wulfraem <[email protected]>

* test structure, fix random drop of dispatch task (#21)

---------

Co-authored-by: Sebastian Wolfram <[email protected]>
Co-authored-by: Sebastian Wolfram <[email protected]>
- re-add history tests
- remove fixed versions as sequence numbers depend of faucet
- re-add history tests
- remove fixed versions as sequence numbers depend of faucet
This commit adds functionality for creating a document and an identity. It includes the following changes:
itsyaasir and others added 25 commits November 13, 2024 11:41
fix(multicontroller): remove active proposal incase it has been executed
chore(examples): add missing advanced examples
* feat: add linked verifiable presentation example and update dependencies

* identity send & borrow assets

* TransactionOutput to return both parsed output and raw tx response (#58)

* identity send & borrow assets

* identity send & borrow assets

* de-duplicate code in tests

* rename move function

---------

Co-authored-by: Yasir <[email protected]>
* identity send & borrow assets

* use QuasiTransaction trait in ProposalT

* identity send & borrow assets

* identity send & borrow assets

* de-duplicate code in tests

* rename move function

* clean-up unused files

* rename `QuasiTransaction` to `ProtoTransaction`
…ntity-core

Integrate `identity_sui_name_tbd` contents into `identity_iota_core`
* update move package to use internal clock for time metadata

* update rust code to use timestamp provided by move object for Identity

* fix number encoding

* fix proposal tests

* Update identity_iota_core/src/rebased/sui/move_calls/utils.rs

Co-authored-by: Yasir <[email protected]>

* update & deactivation modify updated timestamp

---------

Co-authored-by: Yasir <[email protected]>
chore(ci): replicate CI steps locally
…1424)

* use official stardust package, update move code

* remove anything using stardust-test move package

* migrate legacy alias API
@eike-hass eike-hass requested a review from a team as a code owner November 19, 2024 13:52
@eike-hass
Copy link
Collaborator Author

Work will continue at #1436 using a cleaned (but rewritten) history

@eike-hass eike-hass closed this Nov 22, 2024
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.

4 participants