GithubHelp home page GithubHelp logo

Comments (9)

ponderingdemocritus avatar ponderingdemocritus commented on August 16, 2024 2

ah no not exactly - in production you use Argent or similar as the Master account, and the master account can update the public key, and restore the account (look how loot survivor does it). Also the Cartridge controller will handle this in the future.

from dojo.js.

ponderingdemocritus avatar ponderingdemocritus commented on August 16, 2024

good ideas! Agree with them.

The last one is tricky, since we only store the burners in cookies. The only other option would be if they were downloaded into a json, then restored from that. There is actually a copy function which allows this already.

from dojo.js.

rsodre avatar rsodre commented on August 16, 2024

I was thinking about storing the accounts on-chain, but what about the private keys? Can’t have them exposed like that. Maybe if they are derived from a specific message signature, but I don't know if that’s secure enough.

from dojo.js.

ponderingdemocritus avatar ponderingdemocritus commented on August 16, 2024

Is this so people can transfer accounts between clients?

from dojo.js.

rsodre avatar rsodre commented on August 16, 2024

I think this may be important to restore lost accounts. If the player did not export and lost their cookies, burner funds will be lost forever

from dojo.js.

rsodre avatar rsodre commented on August 16, 2024

ah no not exactly - in production you use Argent or similar as the Master account, and the master account can update the public key, and restore the account (look how loot survivor does it). Also the Cartridge controller will handle this in the future.

Loot Survivor requires the address to restore an arcade account. what if it is lost?

I've been researching if we can derive a deterministic key pair, similar to how Ethereum wallets create always the same sequence of accounts, and want to try something based on this:
https://github.com/amanusk/starknet-cli-wallet/blob/main/src/keyDerivation.ts
https://community.starknet.io/t/account-keys-and-addresses-derivation-standard/1230

The wallet account would sign a message including the game name and the account index, and the signature is used as seed for key generation. That account could be restored anywhere the wallet is connected.

As a side effect, if we use adventurer as the game name, for example, the same account can be used on multiple games.

from dojo.js.

ponderingdemocritus avatar ponderingdemocritus commented on August 16, 2024

address - the master account will also have a transaction that deployed the account, so you can always find it.

yes - it's all deterministic. Loot Survivor has solved this problem - have you looked at it?

from dojo.js.

rsodre avatar rsodre commented on August 16, 2024

I did, it looks random

https://github.com/BibliothecaDAO/loot-survivor/blob/main/ui/src/app/lib/burner.ts#L191

I was trying on testnet, every time I create a new account it has a new address.

from dojo.js.

ponderingdemocritus avatar ponderingdemocritus commented on August 16, 2024

Sorry you are right - but the master still deploys it, and master can update the keypair, so you can never loose it

from dojo.js.

Related Issues (20)

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.