Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aviarytech/a51

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aviarytech/a51

Proof of work or vanity hash/address/did generator library

  • 0.0.6
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
5
increased by150%
Maintainers
1
Weekly downloads
 
Created
Source

a51

This library generates cryptographic keypairs based on specified requirements that are quite beautiful.

target

the target is the leading characters in the vanity key/hash

key gen methods

  • genEd25519 => Generates an Ed25519 keypair
  • genBls12381 => Generates a Bls12381 G2 keypair
  • random => Generates a random value not suitable as a keypair

work methods

  • didSov => Creates a vanity did:sov
  • didKey => Creates a vanity did:key
  • sha256Hash => Creates a vanity hash of the public key
  • noWork => Always returns true - used for regular key generation

Example

const keyPair = await genKey("AV1", genEd25519, didSov);

FAQs

Package last updated on 29 Dec 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc