New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@digitalbits-blockchain/xdbfoundation-identicon-js

Package Overview
Dependencies
Maintainers
5
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@digitalbits-blockchain/xdbfoundation-identicon-js

Tool to generate identicons for DigitalBits wallets - unique icons, generated based on the wallet public key.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
5
Created
Source

DigitalBits Identicon Generator (Javascript)

Tool to generate identicons for DigitalBits wallets - unique icons, generated based on the wallet public key.

Here's a set of identicons generated for random DigitalBits accounts:

image

With the default settings, both will produce the same identicon image for any DigitalBits account address.

Usage

import createDigitalBitsIdenticon from 'digitalbits-identicon-js';

const canvas = createDigitalBitsIdenticon('GBIDGDSVQXAHGZNOETS7ADUMWCDSQJU4R53EZRK6ONP3BA42UJL5PAHR');
const renderedIcon = canvas.toDataURL() // create  data URI containing a generated icon in PNG format

Demo

  • Install npm dependecies
npm install
  • Build library
npm run build

And open the demo/index.html in the browser to see the usage example.

Web API

Let's say your DigitalBits address is: GBIDGDSVQXAHGZNOETS7ADUMWCDSQJU4R53EZRK6ONP3BA42UJL5PAHR

Identicons are served as 210x210 square images in PNG format, <1KB in size, which should work for most usecases.

Keywords

digitalbits

FAQs

Package last updated on 02 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts