Comments (9)
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.
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.
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.
Is this so people can transfer accounts between clients?
from dojo.js.
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.
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.
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.
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.
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)
- [enhancement] Reconnect torii automatically HOT 3
- [Bug]: Model named Table breaks Torii sync HOT 5
- [client] Update create-dojo to include non-react packages HOT 3
- Dojo dev tooling HOT 3
- [Bug]: torii-client buid not working on nextjs/vercel
- [Feature]: Restore burner accounts
- [Bug]: Avoid prefunding deployed accounts
- [Feature]: Add support for event messages HOT 5
- [Bug]: generateComponents not testing ByteArray
- [testing] Improve test suite coverage in core package
- [bug] Account deployment bug
- [Bug]: Origami model not
- [Enhancement]: Wrong path in dojoConfig.ts
- [Bug]: Enums as strings HOT 1
- [Bug]: Error accesing to Torii API from examples HOT 1
- Kitchen Sink Dojo app HOT 1
- Vanilla Phaser.js eample
- [Bug]: Manifest type is outdated
- [Bug]: Client not in sync with torii grpc HOT 1
- Add Cartridge Controller example HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dojo.js.