Skip to content

block-wallet/phishing-prevention

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Phishing Prevention

This library allows rendering a Phishing prevention image into the wallet.

Installation

  • npm

    npm i --save https://github.com/block-wallet/phishing-prevention
  • yarn

    yarn add https://github.com/block-wallet/phishing-prevention

Usage

Simply by calling the following function, we can generate a deterministically generated phishing prevention image in base64 format based on the provided uuid. This will allow us in the feature to let the user decide which phishing image to use based on the UUID seed.

const base64ImageString = await generatePhishingPrevention("38cb4f4d-050c-4022-a315-4b5218e53800", 300)

Props

Prop Required Type Description
uuid ✔️ String A randomly generated uuid to use as seed for randomness and noise
size ✔️ Number The size of the canvas

About

Phishing prevention library for Block Wallet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published