Coder Social home page Coder Social logo

krakenfx / wallet Goto Github PK

View Code? Open in Web Editor NEW
133.0 14.0 28.0 29.6 MB

Kraken Wallet is a powerful self-custody wallet built for the decentralized web

Home Page: https://kraken.com/wallet

License: MIT License

JavaScript 0.99% Ruby 0.10% Java 0.46% Kotlin 0.39% TypeScript 97.31% Objective-C 0.06% Swift 0.51% Objective-C++ 0.13% Starlark 0.04%

wallet's Introduction

Kraken Wallet

Kraken Wallet is a Crypto and Bitcoin self-custody wallet where your keys never leave your device. Engineered and crafted by the mighty and OG Kraken.com. It is built with React Native, Realm, an Electrum Server, and other FOSS projects. The backend runs over a proxy to ensure your personal data is never shared with 3rd party services or companies. It is built under strong principles of privacy, self-custody, and security to ensure maximum sovereignty for its users. It is open sourced under the MIT license.

This repo functions as a mirror of the main private development repo. Its main purpose is to provide audibility, trust minimization, and code review. Please provide feedback, vulnerabilities or bug reporting using the responsible disclosure process.

Main features

  • Multi-chain support (Bitcoin, Ethereum, Polygon, Arbitrum, Optimism, Base, Solana, and Dogecoin)
  • View and manage your Assets
  • View and manage your NFTs
  • View your DeFi Deposits
  • WalletConnect support
  • Single Seed for Multiple Wallets
  • Import Wallets (BIP39 standard)
  • Push Notifications for Android and iOS
  • Data encryption using password and/or biometrics
  • Multi-language support

Official Channels

License

Kraken Wallet's source code is released under the terms of the MIT license.

Security Audit

Trail of Bits - [link]

Security Model

Responsible Disclosure

All bug and vulnerability disclosures must go through the properly defined channels.

Contributing

We welcome contributions from the community. Here are a few guidelines to help you get started:

Security-Related Bugs and Disclosures

For any security-related issues, please refer to our Responsible Disclosure policy. It's crucial that these matters are handled sensitively to protect all users.

Feature Requests

If you're interested in suggesting a new feature, please submit a detailed issue on Github. Include the purpose of the feature, its potential impact, and any ideas you have for how it might be implemented. This will help us understand and evaluate your proposal more effectively.

Pull Requests

Please note that our repository is a point-in-time mirror of our internal repository, which means we cannot directly merge pull requests. However, every pull request is valuable and will be reviewed by our team. Contributions considered suitable will be manually integrated into our internal repo and reflected in future releases.

Upcoming Improvements

We are currently working on providing build files and developer documentation that are necessary for quality PRs. We expect to roll out these resources soon and will keep the community updated on our progress.

wallet's People

Contributors

coralaquarist avatar erickuhn19 avatar hexcrypt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wallet's Issues

Improve security and dependency situation

I maintain ethereum-cryptography, which was created to combine all ethereum deps in one package. The work was funded by EF in 2021. You are already using it through some of your deps.

Kraken depends on a bunch of unnecessary cryptographic libraries. For example, for secp256k1, you use at least 4 libraries: secp256k1, tiny-secp256k1, elliptic and @noble/curves. Instead of it, one library can be used. Sometimes you are using outdated dependencies, that have not been maintained for years.

A dependency can get an update and add malware to your bundle. This can be combatted:

  • by manually checking every dependency upgrade diff
  • by utilizing lavamoat sandbox (like metamask does)

It can be assumed that you did not personally audit every line of dependency. Neither did your auditor, because that would be too long and expensive.

You are already using audited noble-hashes and noble-curves through @solana/web3.js, bip32, bip39, ethers and others. I suggest to do following steps:

  1. ripemd160 can be replaced by noble-hashes
  2. secp256k1 can be replaced by noble-curves
  3. slip39 can be replaced by ed25519-keygen, which depends on noble-curves
  4. tiny-secp256k1 can be replaced by noble-curves
  5. web3 v1.10 can be upgraded to v4 which depends on noble-curves
  6. ethereumjs-wallet v1 can be upgraded to v2, which depends on noble-curves and noble-hashes
  7. ed25519-hd-key: see 3, is unnecessary
  8. crypto-browserify should be removed (last update 6 years ago, unmaintained, lots of deps) and replaced by noble-hashes
  9. ecpair can be replaced by noble-curves or scure-btc-signer
  10. electrum-mnemonic can be replaced by scure-bip39 (todo: research if feature-parity is achieved)
  11. bignumber.js is not needed, can be replaced by native BigInt
  12. @metamask/eth-sig-util can be upgraded from v4 to v7, which depends on noble-curves

Missing files for external contributors

Hello Krakenites,

I was interested in contributing to your open-source project and decided to try to deploy it locally.
Unhappily there seems to be some missing files. Some that I already found:

  • on /src/App.tsx I can't import this line import { runMigrations } from './utils/migrations';
  • on /src/hooks/useDebugInfo.ts this statement this require won't work: const gitInfo = require('/git-info.json');

After commenting those lines I still struggle with the following error:

error: node_modules/react-native-reanimated/src/reanimated2/core.ts: .../kraken-wallet/node_modules/react-native-reanimated/src/reanimated2/core.ts: Cannot find module '@babel/plugin-proposal-optional-chaining'

I have tried with and without Expo Go, just to get the same result. So, I guess I am out of luck.
I would be happy to assist you in making it easy for contributors to get onboarded on this project.

Cheers,
Pedro

Request for Developer Documentation and Basic CI Tooling

Firstly, I'd like to commend you on the recent release of your open-source wallet. This initiative is a significant step towards transparency and fosters community involvement, which is commendable.

As a developer interested in contributing to the project, I encountered challenges setting up and running the wallet locally due to the absence of developer documentation. Would it be possible for the team to provide some insights or guidelines on how to develop locally, properly?

Furthermore, implementing GitHub Actions with basic CI tooling would be beneficial. Automating the testing process can enhance code quality and streamline contributions for the community. While I understand GitHub might not be your primary platform, given the security audit I've read, integrating some tooling here could still be advantageous.

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.