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

A flutter plugin that let you easily create and manage web3 wallet and support funcitionality of Peppermint

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. Peppermint SDK makes it easy to do it without much complexity to manually implement other web3 packages. This package also store the keys safely using flutter_secure_storage.

In future, this package is a bridge to use Peppermint’s functionality with ease.

Features #

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

Usage #

Import package:peppermint_sdk/peppermint_sdk.dart, instantiate WalletManager.

import 'package:peppermint_sdk/peppermint_sdk.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 publicKey = await manager.getPublicKey();

// get current private key
String privateKey = 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

A flutter plugin that let you easily create and manage web3 wallet and support funcitionality of Peppermint

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, flutter_secure_storage, web3dart

More

Packages that depend on peppermint_sdk