All Projects → uport-project → Ethr Did

uport-project / Ethr Did

Licence: apache-2.0
Create ethr DIDs

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Ethr Did

Aspnetcore Webapi Course
Professional REST API design with ASP.NET Core 3.1 WebAPI
Stars: ✭ 323 (+258.89%)
Mutual labels:  jwt, identity
Zitadel
ZITADEL - Cloud Native Identity and Access Management
Stars: ✭ 105 (+16.67%)
Mutual labels:  jwt, identity
Aspnetcore Ddd
Full ASP.NET Core 3.1 LTS application with DDD, CQRS and Event Sourcing
Stars: ✭ 88 (-2.22%)
Mutual labels:  jwt, identity
Aspnetcore2jwtauthentication
Jwt Authentication without ASP.NET Core Identity
Stars: ✭ 218 (+142.22%)
Mutual labels:  jwt, identity
Cierge
🗝️ Passwordless OIDC authentication done right
Stars: ✭ 1,245 (+1283.33%)
Mutual labels:  jwt, identity
Authing
🔥Authing - IDaaS/IAM solution that can Auth to web and mobile applications.
Stars: ✭ 247 (+174.44%)
Mutual labels:  jwt, identity
Security.identity
.NET DevPack Identity is a set of common implementations to help you implementing Identity, Jwt, claims validation and another facilities
Stars: ✭ 165 (+83.33%)
Mutual labels:  jwt, identity
Aspnetcoreapistarter
An ASP.NET Core (v2.1) Web API project to quickly bootstrap new projects. Includes Identity, JWT authentication w/ refresh tokens.
Stars: ✭ 304 (+237.78%)
Mutual labels:  jwt, identity
Auth0 Socketio Jwt
Authenticate socket.io incoming connections with JWTs
Stars: ✭ 1,093 (+1114.44%)
Mutual labels:  jwt, identity
Deno crud jwt
🦕 basic jwt implementation with CRUD operations using deno + postgres
Stars: ✭ 80 (-11.11%)
Mutual labels:  jwt
Sjwt
Simple JWT Golang
Stars: ✭ 86 (-4.44%)
Mutual labels:  jwt
Laravel Vue Starter
Well Documented Laravel Starter App From Development to Production. For Full Blown RESTFUL API and SPA with Beautiful UI Using Buefy / ElementUi For Reusable Vue Components
Stars: ✭ 76 (-15.56%)
Mutual labels:  jwt
Python Jwt
JSON Web Token library for Python
Stars: ✭ 81 (-10%)
Mutual labels:  jwt
Laravel Api Starter
laravel5.5 + dingo/api + JWT
Stars: ✭ 85 (-5.56%)
Mutual labels:  jwt
Kikoeru Express
kikoeru 后端,不再维护,请到https://github.com/umonaca/kikoeru-express 获取更新
Stars: ✭ 79 (-12.22%)
Mutual labels:  jwt
Express Jwt Authz
Validate the JWT scope to authorize access to an endpoint
Stars: ✭ 74 (-17.78%)
Mutual labels:  jwt
Ixortalk.aws.cognito.jwt.security.filter
Spring Boot security filter for decoding Cognito JWT IdTokens
Stars: ✭ 75 (-16.67%)
Mutual labels:  jwt
Easy Notes
🍋 简笔记(easy notes)打造你的轻便私人笔记。接口涉及Spring Security、OAuth2、Jwt、MongoDB,客户端采用 Vue.js 、Ant Design
Stars: ✭ 89 (-1.11%)
Mutual labels:  jwt
Buddy Sign
High level message signing library.
Stars: ✭ 86 (-4.44%)
Mutual labels:  jwt
Active Directory B2c Javascript Nodejs Webapi
A small Node.js Web API for Azure AD B2C that shows how to protect your web api and accept B2C access tokens using Passport.js.
Stars: ✭ 85 (-5.56%)
Mutual labels:  identity

npm npm Join the chat at Twitter Follow

Ethr-DID Library

DID Specification | ERC-1056 | Getting Started

FAQ and helpdesk support

This library conforms to ERC-1056 and is intended to use Ethereum addresses as fully self-managed Decentralized Identifiers (DIDs), it allows you to easily create and manage keys for these identities. It also lets you sign standards compliant JSON Web Tokens (JWT) that can be consumed using the DID-JWT library.

This library can be used to create a new ethr-did identity. It allows ethr-did identities to be represented as an object that can perform actions such as updating its did-document, signing messages, and verifying messages from other dids.

Use this if you are looking for the easiest way to start using ethr-did identities, and want high-level abstractions to access its entire range of capabilities. It encapsulates all the functionality of ethr-did-resolver and ethr-did-registry.

A DID is an Identifier that allows you to lookup a DID document that can be used to authenticate you and messages created by you.

Ethr-DID provides a scalable identity method for Ethereum addresses that gives any Ethereum address the ability to collect on-chain and off-chain data. Because Ethr-DID allows any Ethereum key pair to become an identity, it is more scalable and privacy-preserving than smart contract based identity methods, like our previous Proxy Contract.

This particular DID method relies on the Ethr-Did-Registry. The Ethr-DID-Registry is a smart contract that facilitates public key resolution for off-chain (and on-chain) authentication. It also facilitates key rotation, delegate assignment and revocation to allow 3rd party signers on a key's behalf, as well as setting and revoking off-chain attribute data. These interactions and events are used in aggregate to form a DID's DID document using the Ethr-Did-Resolver.

An example of a DID document resolved using the Ethr-Did-Resolver:

{
  '@context': 'https://w3id.org/did/v1',
  id: 'did:ethr:0xb9c5714089478a327f09197987f16f9e5d936e8a',
  publicKey: [{
       id: 'did:ethr:0xb9c5714089478a327f09197987f16f9e5d936e8a#owner',
       type: 'Secp256k1VerificationKey2018',
       owner: 'did:ethr:0xb9c5714089478a327f09197987f16f9e5d936e8a',
       ethereumAddress: '0xb9c5714089478a327f09197987f16f9e5d936e8a'}],
  authentication: [{
       type: 'Secp256k1SignatureAuthentication2018',
       publicKey: 'did:ethr:0xb9c5714089478a327f09197987f16f9e5d936e8a#owner'}]
}

On-chain refers to something that is resolved with a transaction on a blockchain, while off-chain can refer to anything from temporary payment channels to IPFS.

It supports the proposed Decentralized Identifiers spec from the W3C Credentials Community Group.

DID Method

A "DID method" is a specific implementation of a DID scheme that is identified by a method name. In this case, the method name is ethr, and the method identifier is an Ethereum address.

To encode a DID for an Ethereum address, simply prepend did:ethr:

For example:

did:ethr:0xf3beac30c498d9e26865f34fcaa57dbb935b0d74

Configuration

import EthrDID from 'ethr-did'

// Assume web3 object is configured either manually or injected using metamask


const ethrDid = new EthrDID({address: '0x...', privateKey: '...', provider})
key description required
address Ethereum address representing Identity yes
registry registry address (defaults to 0xdca7ef03e98e0dc2b855be647c39abe984fcf21b) no
provider web3 provider no
web3 preconfigured web3 object no
rpcUrl JSON-RPC endpoint url no
signer Signing function either signer or privateKey
privateKey Hex encoded private key yes*

Note An instance created using only an address can only be used to encapsulate an external ethr-did (one where there is no access to the private key). This instance will not have the ability to sign anything, but it can be used for a subset of actions:

  • provide its own address (ethrDid.address)
  • provide the full DID string (ethrDid.did)
  • lookup its owner await ethrDid.lookupOwner()
  • verify a JWT await ethrDid.verifyJwt(jwt)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].