dcl-crypto

Crates.iodcl-crypto
lib.rsdcl-crypto
version0.2.2
sourcesrc
created_at2023-04-18 18:30:13.353432
updated_at2024-02-14 19:36:28.771308
descriptionTools to create and validate Decentraland's Authentication Chains.
homepage
repository
max_upload_size
id842735
size103,530
Muna (decentraland-bot)

documentation

README

Decentraland crypto (Rust)

This crate is a port of @dcl/crypto originally implemented on javascript and provides the necessary tools to create and validate Decentraland's Authentication Chains.

Test

To run all tests you need to provide a ethereum rpc endpoint.

First, create a .cargo/config.toml file using the template provided in the repository and set your rpc provider.

cp .cargo/config.toml.example .cargo/config.toml

Once configured you can run all tests

cargo test --doc

Release

:warning: Do not modify package.version on Cargo.toml

Use Github Releases to create a new version.

TODO

  • serialize and deserialize auth chains
  • verify auth chains
    • simple
    • ephemeral
  • verify auth chain expiration
  • verify personal signatures
  • verify EIP-1271 signatures
  • create identity
  • create auth chain from identity
  • load identity from file
  • release process
    • build cache
    • coverage
    • publish cargo
Commit count: 0

cargo fmt