Skip to content

8001800/eth-web-token

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ethereum Web Token

Authentication for the blockchain era.

Ethereum web tokens (EWTs) are JSON web tokens that are signed using a Web3 provider. This enables authentication using an Ethereum address. Some use cases include:

  • Permissioned ERC721 metadata
  • Restricting API access to certain Ethereum addresses
  • Proving ownership of an Ethereum address
  • Basically anything auth related!

Implementation

EWTs are just JWTs with a few additional constraints:

  • The alg is set to ETH.
  • An address field must be included in the payload.
  • The signed payload is the base64url encoding of web3.sign(HEADER . payload)

The EWT standard is intentionally simple to make it easy to integrate into existing JWT-based systems and libraries.

Roadmap

The goal is to support all JWT features, especially claims. Pull requests are encouraged!

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published