Skip to content
This repository was archived by the owner on Jun 27, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
## 0.0.1

* TODO: Describe initial release.
* Give the ability to generate web3 wallet & restore wallet from private key.
43 changes: 27 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,40 @@ and the Flutter guide for
[developing packages and plugins](https://flutter.dev/developing-packages).
-->

TODO: Put a short description of the package here that helps potential users
know whether this package might be useful for them.
A dart library to easily create Web3 Wallet.

## Features

TODO: List what your package can do. Maybe include images, gifs, or videos.
The most common usage of web3 wallet is to generate wallet address (public key) and private key. This library makes it easy to do it without much complexity to manually implement other web3 packages.

## Getting started
## Features

TODO: List prerequisites and provide or point to information on how to
start using the package.
1. Generate wallet address (public key) and private key
2. Get current wallet address
3. Get current private key

## Usage

TODO: Include short and useful examples for package users. Add longer examples
to `/example` folder.
Import ```package:wallet_manager/wallet_manager.dart```, insantiate ```WalletManager```.

```dart
const like = 'sample';
```
import 'package:wallet_manager/wallet_manager.dart';

WalletManager manager = WalletManager();

// generate new wallet
WalletKeys keys = manager.createWallet();
print('${keys.publicKey}');
print('${keys.privateKey}');

## Additional information
// generate wallet from existing private key
String walletAddress = await manager.restoreWallet('enter your private key here')

// get current wallet address
String walletAddress = await manager.getPublicKey();

// get current private key
String walletAddress = await manager.getPrivateKey();


```

TODO: Tell users more about the package: where to find more information, how to
contribute to the package, how to file issues, what response they can expect
from the package authors, and more.
This library manage only 1 private key and public key per device.
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: wallet_manager
description: Easily create wallet. Create and call wallet address and private key.
version: 0.0.1
homepage:
homepage: https://github.com/adgorithmics-inc/wallet-manager

environment:
sdk: ">=2.16.1 <3.0.0"
Expand Down