Skip to content

Commit

Permalink
Add did-pkh
Browse files Browse the repository at this point in the history
  • Loading branch information
clehner committed Apr 1, 2021
1 parent 80afc63 commit 49c0bc1
Show file tree
Hide file tree
Showing 15 changed files with 962 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Support relative DID URLs in DID documents.
- Support [publicKeyBase58][] for Ed25519.
- Added `DIDMethods::generate` function.
- Add `did:pkh` Public Key Hash DID Method.

### Changed
- Make `ResolutionResult` struct public.
Expand Down
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ keccak-hash = { version = "0.7", optional = true }
p256 = { version = "0.7", optional = true, features = ["zeroize", "ecdsa"] }
signature = { version = ">= 1.2.2, < 1.3.0" } # match ecdsa 0.10.2
ssi-contexts = { path = "contexts/" }
ripemd160 = { version = "0.9", optional = true }

# dependencies for json-ld
log = "^0.4"
Expand All @@ -66,6 +67,7 @@ members = [
"did-web",
"did-ethr",
"did-sol",
"did-pkh",
"vc-test",
]

Expand Down
16 changes: 16 additions & 0 deletions did-pkh/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[package]
name = "did-pkh"
version = "0.0.1"
authors = ["Spruce Systems, Inc."]
edition = "2018"

[dependencies]
ssi = { path = "../", default-features = false, features = ["secp256k1", "keccak-hash", "p256", "ripemd160"] }
chrono = { version = "0.4", features = ["serde"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
async-trait = "0.1"
bs58 = { version = "0.4", features = ["check"] }

[dev-dependencies]
tokio = { version = "1.0", features = ["macros", "rt"] }
Loading

0 comments on commit 49c0bc1

Please sign in to comment.