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

IOTA Identity Beta-2 v0.4 #473

Merged
merged 176 commits into from
Nov 1, 2021
Merged

IOTA Identity Beta-2 v0.4 #473

merged 176 commits into from
Nov 1, 2021

Conversation

JelleMillenaar
Copy link
Collaborator

Description of change

Release PR for IOTA Identity Beta-2.

Jelle Femmo Millenaar and others added 30 commits May 10, 2021 17:05
* Update main readme

* WASM readme update

* Updated example with account

* Rust examples readme
This reverts commit 73d9d66.
…t.rs (#265)

* Add some tests

* Add IotaDocument::try_from_core() unit tests

* Fix clippy error
Also read indexation payload from transaction payloads
* Remove IotaDID->DID Deref anti-pattern.

* Address l1h3r review comments.
* Rework WASM examples to explicitly use client configs.

* Add explorer_util.js adn fix typo.

* Fix explorer URL construction.

Inlined the prefix since it is no longer exported.
Bumps [dns-packet](https://github.com/mafintosh/dns-packet) from 1.3.1 to 1.3.4.
- [Release notes](https://github.com/mafintosh/dns-packet/releases)
- [Changelog](https://github.com/mafintosh/dns-packet/blob/master/CHANGELOG.md)
- [Commits](mafintosh/dns-packet@v1.3.1...v1.3.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [browserslist](https://github.com/browserslist/browserslist) from 4.16.3 to 4.16.6.
- [Release notes](https://github.com/browserslist/browserslist/releases)
- [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md)
- [Commits](browserslist/browserslist@4.16.3...4.16.6)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Add IotaDocument::from_keypair_with_network() and WASM binding.

* Undo unintentional formatting in README.

* Add optional network arg to from_keypair WASM binding.

* Update API reference for fromKeyPair.

* Update README.

* Update bindings/wasm/src/wasm_document.rs
* Use u32 for message delays

* Update docs

* Update version
Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/commits)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
docs: Fix some typos in the method spec
* Update iota-client

* Fix features

* New client builder

* New wasm client

* Update examples
docs: Describe build process for wasm bindings
* Fragment/UnixTimestamp -> core::common

* clippy

* Timestamp::now -> Timestamp::now_utc
* Remove shard from DIDs

* wasm fixes

* update yarn.lock

* doctest
* Restore client.checkCredential/checkPresentation

* doc: Serialize `message_id` for `IotaDocument`s

* wasm: Fix incorrect path in example imports

* client: Rename `read_document` to `resolve`

* Revert "doc: Serialize `message_id` for `IotaDocument`s"

This reverts commit 26e2dcd.

* wasm: Serialize `message_id` for resolve method

Co-authored-by: PhilippGackstatter <philipp.gackstatter@iota.org>
* Add blake2b to wasm bindings

* docs
* Rename auth to int chain everywhere

* Create verification method with attached auth

* Fix generations in tests

* Update remaining generations in tests

* Remove outdated TODO

* Impl generic verif method in low level API

* Use 'integration' instead of 'int'

* Add test that verifies number of verif. methods

* Assert the authentication relationship
* Fix WasmDocument constructor Typescript bindings

Replace IotaDocument `from_keypair()`, `from_keypair_with_network()` with `new()`.
Update Wasm binding examples to be more consistent with Rust.

* Fix test and benchmark compilation

* Fix benchmark compilation

* Apply suggestions from code review

* Add Document::new_with_options constructor

Allow default verification method fragment to be specified.
Add doc, unit tests.

* Use NetworkName instead of &str

Remove IotaDID::from_components.
Remove specific InvalidNetworkName strings for consistency with other errors and to use with TryInto.
Allow Network::try_from_name to take an actual NetworkName as well as a
string.

Co-authored-by: Philipp <philipp.gackstatter@iota.org>
Account feature has to be added to the identity dependencies to use identity::account::*.
…ate_identity (#414)

* Update Account::create_identity() to return IdentityState.

* Update Account::find_identity() to return IdentityState.
* Rename JSON serialization field name to match spec.

* Rename notSupported -> representationNotSupported
* reduce wasm build size

* Enable lto for Wasm release

Add `build-dev` task for Wasm for debugging.

Co-authored-by: Craig Bester <craig.bester@iota.org>
* Merged Stronghold with basic examples in account

* Updated explorer to identity resolver

* Added explorer URL after basic example

* Renamed examples

* Completed manipulate did example

* Fixed suggestions, removed replaced examples.

* Improved example readme

* Consistently use Stronghold and Resolver URL

* Fix examples

* Merged config example with private tangle

* low-level-api private-network example runs

* cargo fmt

* cargo fmt with nightly

* Impl suggestions
* Reorganized files

* Renamed .md files to .mdx (see https://docusaurus.io/docs/next/markdown-features/react)
Added examples
Deleted unused files
Updated sidebar
Added 20px margin bottom for replit embedded object
Removed redundant units and props in styles.css

* added NLOF

* Apply suggestions from code review

Co-authored-by: charlesthompson3 <74603461+charlesthompson3@users.noreply.github.com>

* Added Wasm Cheat and Rust Cheat sheet skeleton

* Apply suggestions from code review

Co-authored-by: charlesthompson3 <74603461+charlesthompson3@users.noreply.github.com>

* fix typo

* Fixed links
ADded first draft of rust cheat sheet
Changed extension in verifiable_presentations.md to mdx

* Added example output for all functions in the WASM cheat_sheet.md

* Added example JSON output for all functions in the Rust cheat_sheet.md

* Added tutorial

* Formatted tutorial

* Addressing comments:
* Added instructions and descriptions on installing both main and dev branches.
* Removed low level API items from rust cheat sheet and added Account modules examples where possible.
* Added stronghold, private tangle and vp account module examples

* * added branch specific installation instructions
* fixed html in cheat_sheet.md

Co-authored-by: charlesthompson3 <74603461+charlesthompson3@users.noreply.github.com>
* updated cache action versions

* added actions to watched paths

* updated cache version for examples workflow
* * Replaced imported account module stronghold example with basic example.
* Removed reference to deleted account module examples
* Added test action to catch future include issues

* testing action

* removed action as I wasn't being successful at all

* Added combined examples as suggested by @cycraig
Out of an abundance of caution. Not an actual vulnerability since
`set_current` is unused and we don't use any SystemTime conversions
affected by a known vulnerability.
* Update methods to default to PublicKeyMultibase

* Update documentation to use PublicKeyMultibase
* Add separate DID, DIDUrl constructs

Add DID trait.
Add CoreDID, IotaDID structs.
Add DIDUrl generic struct.
Update various structs and functions to use a DID instead of a DIDUrl
where appropriate.

* Implement RelativeDIDUrl

Add extra CoreDID validation.
Add RelativeDIDUrl doctests.
Update tests, examples.

* Add DID Url unit tests.

Handle relative DID Url edge-cases.
Remove uriparse dependency.

* Fix formatting

* Fix clippy lint warnings

* Fix dereference_document

Add dereference unit tests.

* Fix formatting, clippy lint warnings

Add missing licence headers.

* Fix tests, benchmarks

* Remove unsafe cast in IotaVerificationMethod

* Add WasmDIDUrl

Update Wasm examples.

* Fix wasm formatting

* Improve RelativeDIDUrl comparisons

* Improve DIDUrl parsing

Re-export BaseDIDUrl to satisfy TryFrom<BaseDIDUrl> without adding the
`did_url` crate dependency to other projects.

* Remove resolution metadata check

Fix formatting.

* Change remove_service, remove_method parameters

Add doc comments.
* Use explorer_url from custom network

* Use devnet explorer url

Co-authored-by: Craig Bester <craig.bester@iota.org>

* Fix explorer url formatting

Co-authored-by: Craig Bester <craig.bester@iota.org>
* Fix low-level private tangle example

* Keep discussion on network name requirements
* Fix links in create.mdx

* Fix links in validate_university_degree.mdx
* Removed meeting minutes

* Removed copy

* Fixing some links

* Removed Blog
* [WIP] Add DIDComm protocol specifications

* [WIP] Describe presentation messages

* [WIP] enhanced presentation protocol

* [WIP] enhanced presentation protocol

* [WIP] enhanced presentation protocol

* [WIP] enhanced presentation protocol

* [WIP] Add alternative presentation diagrams

* [WIP] further work on presentation

* [WIP] added signing protocol

* [WIP] further signing protocol

* [WIP] further signing protocol

* [WIP] fixed presentation

* [WIP] added issuance

* [WIP] further issuance

* [WIP] added credential-types, renamed problem-reports

* [WIP] minor cleanup

* [WIP] furthr work on issuance

* [WIP] further work on issuance

* [WIP] further work on issuance

* [WIP] further work on issuance

* [WIP] further work on issuance

* [WIP] further work on issuance

* [WIP] added revocation

* [WIP] added revocation diagram

* [WIP] added revocation-options, further revocation

* [WIP] further revocation-options, further revocation

* [WIP]further revocation

* [WIP]further revocation and revocation-options

* [WIP]further revocation and revocation-options

* [WIP] added termination

* [WIP] reference external flows

* [WIP] add presentation-exchange to presentation

* [WIP] further revocation

* [WIP] further revocation

* [WIP] further revocation

* added connection

* [WIP] further connection

* [WIP] further connection

* [WIP] further connection

* [WIP] further connection, added authetication

* [WIP] further authetication

* [WIP] fixed typos

* [WIP] further auth]

* [WIP] further auth

* [WIP] further auth

* [WIP] further auth

* fixed typo

* [WIP] problem reports

* problem reports

* further problem reports

* further problem reports

* problem reports, added 'post' protocol

* added post

* type negotiation, reworked revocation

* type negotiation

* cleanup

* added introduction

* editing

* editing

* editing

* Update issuance.md

fixed grammar.

* added potential future CrendentialInfo methods

* Fix Credential Kinds links

Minor formatting.

* First 3 files review, typos and extra info

* Update DIDComm spec introduction slightly

* Change DIDComm spec sidebar ordering

* Edit trust paragraph in authentication

Remove redundant authentication example.

* Update connection->feature discovery relationship

* Minor changes to presentation

* Spelling fixes

* Reorder resources section to after protocols in overview

* Reorder revocation to before revocation options

* Improve credential links in presentation

* Fix footnote numbering in signing

* Update signing authorisation consideration

* added description to sections

* fix sidebar links

* added diagram section

* Deduplicate authentication protocol links

* Deduplicate connection protocol links

* Deduplicate issuance protocol links

* Deduplicate presentation protocol links

* Deduplicate signing protocol links

* changed intro text

* further presentation

* cleaned up presentation

* further overview

* further authentication

* renamed Credential Kinds, added description for trust considerations

* further authentication

* reworked presentation

* updated changelog

* removed TODO

* fixed links

* added disclaimer and changed headline structure

* updated 'last updated'

Co-authored-by: Eike Haß <eike-hass@web.de>
Co-authored-by: Oliver Anderson <oliver.anderson@iota.org>
Co-authored-by: JelleMillenaar <Jelle.millenaar@iota.org>
* add an upper limit to the amount o keys that can be generated

* comment count new behavior

* fix pre-existing test to adjust to next power of two policy

* set upper limit to 2^32

* define an upper limit of 2^12 for key collection

* add check before allocating vec

* throw error when trying to create a KeyCollection with 0 keys, improve comments

* fix comment

* run cargo fmt

* add const MAX_PROOF_NODES for limiting the amount of nodes in a Proof

* fix fmt
* Removed messages from the wasm bindings

* Revert "Removed messages from the wasm bindings"

This reverts commit e66cf82.

* cleaned up identity-comm/src/messages and identity-comm/src/tests (#467)

* deleted bindings/wasm/src/message (#468)

* build api-reference

Co-authored-by: Oliver Anderson <oliver.anderson@iota.org>
Co-authored-by: Eike Haß <eike-hass@web.de>
* Bump crate versions to `0.4.0`

* Bump `identity-wasm`, too!

* Bump `identity-wasm` itself, too.
@JelleMillenaar
Copy link
Collaborator Author

Audit failed with known vulnerabilities related to issues #440 and #442. We will implement a fix soon, but have deemed it acceptable for this beta stage. Keep an eye on / use the dev branch if you want to have a fix applied as soon as possible.

@JelleMillenaar JelleMillenaar merged commit 30c33ef into main Nov 1, 2021
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.

None yet