https://github.com/krypton-wallet/wallet-program
Krypton Wallet Smart Contract
https://github.com/krypton-wallet/wallet-program
krypton-wallet rust smart-contract solana
Last synced: 2 months ago
JSON representation
Krypton Wallet Smart Contract
- Host: GitHub
- URL: https://github.com/krypton-wallet/wallet-program
- Owner: krypton-wallet
- License: apache-2.0
- Created: 2023-05-11T03:39:21.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-28T18:14:03.000Z (over 1 year ago)
- Last Synced: 2024-04-19T03:14:51.257Z (about 1 year ago)
- Topics: krypton-wallet, rust, smart-contract, solana
- Language: TypeScript
- Homepage:
- Size: 3.99 MB
- Stars: 2
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - krypton-wallet/wallet-program - Krypton Wallet Smart Contract (TypeScript)
README
# Krypton Wallet Smart Contract
Introducing Krypton, a Solana smart contract wallet with multisig social recovery, eliminating fear of losing your private key and improving usability and security with advanced features.
## Key Features
- Self custody without seed phrases (not good user experience)
- Social recovery with guardians (people, secondary wallet)
- Setting transaction limit to prevent wallets being emptied
- Ability to interact with arbitrary smart contracts## Flow Diagram

## Instructions
- Refer to `program/src/instruction/mod.rs` to view the `shank-account` bindings for all available instructions
- The generated IDL can be found under `js/idl/krypton.json`## Instructions to run locally
1. In the `program` directory and run `cargo-build-sbf` and `cargo build`
2. If the state or instructions or accounts to instructions change: navigate to `js` and run `npm run api:gen`
3. To start amman, navigate to `tests` and run `npx amman start`
4. To run a custom `[test].ts` test, navigate to the directory and run `npx ts-node [test].ts`
**NOTE**: Ensure node version 16 using `nvm use 16`