GithubHelp home page GithubHelp logo

isabella232 / starknet-wallet-contracts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from qd-qd/starknet-wallet-contracts

0.0 0.0 0.0 81 KB

License: MIT License

Python 52.82% Makefile 0.08% Cairo 47.09%

starknet-wallet-contracts's Introduction

Specification

Account.cairo is a contract account based on OZ with a single signer by default. It integrates a plugin system which allow to have different ways to validate a transaction and access your account.

AccountPlugin.cairo is a base contract that only works with plugin (with one by default in case none is specified when making a transaction). The idea is that the rules behind an account can change during its life and Ledger's wallet will have two set of rules: one without an hardware wallet, and one with. Switching from one to the other should not trigger a migration of your account.

Plugins

Plugins give wallets the options to validate a transaction. For instance, we have a SessionKey plugin that allow dapps to make transactions on your behalf to make possible a new UX where users do not have to face the "sign" popup for every action they want to take. This sessionKey plugin is a joint exploration with the Argent team and a good explanation about it is available here.

Another idea is to have a recovery plugin that allows an account to be recover in case you loose your signers by changing the default plugin.

Development

Setup a local virtual env

python -m venv ./venv
source ./venv/bin/activate

Install Cairo dependencies

brew install gmp

See for more details:

Install Python dependencies

pip install -r requirements.txt

Compile the contracts

nile compile src/Account.cairo

Test the contracts

pytest tests/*

starknet-wallet-contracts's People

Contributors

cremafr avatar qd-qd avatar

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.