GithubHelp home page GithubHelp logo

rhinestonewtf / registry Goto Github PK

View Code? Open in Web Editor NEW
38.0 38.0 11.0 2.68 MB

An Attestation Registry for securely using Smart Account Modules

Home Page: https://docs.rhinestone.wtf/

License: GNU General Public License v3.0

Solidity 99.26% JavaScript 0.16% Shell 0.58%

registry's People

Contributors

kopy-kat avatar zeroknots avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

registry's Issues

enhancement: Specify chainID whitelist for propagations

the registry currently uses a boolean flag in attestations to allow for L2 propagations.

It would be better to implement a more complex whitelist, that allows attesters to either:

  • generally allow propagations
  • generally disallow propagations
  • pick chainIDs to propagate

Remove revocable flag from Schema and Attestation

Ongoing security is so critical to the module ecosystem and the Registry that I can't think of any legitimate reason to want to have a Schema or Attestation be un-revocable.

At best, this flag would only waste gas, at worst it could lead to security issues where attestations on compromised modules cannot be revoked.

Add sender to resolver UID

Not using the sender/owner to calculate the UID of Resolvers could lead to senders being frontrun and unable to register the Resolver because the UID is already taken - it could also lead to resolvers being owned by someone malicious without noticing and later changed (thanks to Lee Yu for pointing this out)

calculation of schema UIDs

we are currently deriving the schemaUID by calculating a hash on the schema string, the owner (wallet registering the schema) and if its revokable.

I am not sure if this is a good derivation path...

we need schemaIDs to be the same across chains to allow for propagation, and the schema need to be bound to the creator, or else someone could frontrun registration and block the schemaID.

the downside of the current derivation path is that it doesnt allow for wallet rotation for authorities in the future.

we could use the resolver address as a parameter in the hash derivation but that also makes things dangerous if some authorities choose to use create2 for their resolver and can be frontrun

https://github.com/rhinestonewtf/registry/blob/main/src/base/RSSchema.sol#L110-L121

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.