peppermint_sdk 0.0.1 copy "peppermint_sdk: ^0.0.1" to clipboard
peppermint_sdk: ^0.0.1 copied to clipboard

Flutter sdk to support Peppermint functionality.

A flutter library to easily use Peppermint functionality.

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.

Features #

  1. Generate wallet address (public key) and private key
  2. Get current wallet address
  3. Get current private key

Usage #

Import package:wallet_manager/wallet_manager.dart, insantiate WalletManager.

import 'package:wallet_manager/wallet_manager.dart';    

WalletManager manager = WalletManager();  

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

// 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();


This library manage only 1 private key and public key per device.

5
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Flutter sdk to support Peppermint functionality.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, flutter_secure_storage, web3dart

More

Packages that depend on peppermint_sdk