sushichain 0.0.2
sushichain: ^0.0.2 copied to clipboard

Sushichain flutter crypto package

SushiChain Crypto #

A Flutter plugin for iOS and Android providing the base crypto functions for the SushiChain blockchain platform.

Features #

  • generateKeyPair
  • generateNewWallet
  • generateWif
  • generateAddress
  • getWalletFromWif
  • getFullWalletFromWif
  • encryptWallet
  • decryptWallet

Installation #

Add the dependency to your pubspec.yaml

dependencies:
  sushichain: ^0.0.2

Example #

import 'package:dartz/dartz.dart';
import 'package:sushichain/network.dart';
import 'package:sushichain/wallet_factory.dart';

walletFactory.generateNewWallet(Network.testnet).fold(handleErrorHere,(basicWallet){
  // Do something with the basicWallet here
});