8000 GitHub - piniom/controller
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

piniom/controller

 
 

Repository files navigation

Controller Cover Image

Controller

Controller is a gaming specific smart contract wallet that enables seamless player onboarding and game interactions.

It supports transaction signing using Passkeys and Session Tokens.

It consists of the keychain which is a simple, sandboxed application hosted at https://x.cartridge.gg/ and responsible for sensitive operations, such as signing transactions. When an application requests to sign or execute a transaction, keychain enforces client side authorization logic and displays UI for user approval if necessary.

Interaction with the keychain is done throught the controller sdk. Controller implements the account interfaces required by starknet.js. Underneath, the implementation communicates with an embedded sandboxed keychain iframe.

Development

Install pnpm via corepack:

corepack enable pnpm

Install dependencies:

pnpm i

Build dependencies:

pnpm build

Run keychain and starknet-react-next:

pnpm dev

Open http://localhost:3002 in your browser.

The simplest way to then develop with your cartridge account is to port it over from the production keychain:

window.cartridge.importAccount("EXPORTED ACCOUNT");

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 81.8%
  • Rust 15.9%
  • JavaScript 2.2%
  • Other 0.1%
0