New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@transmute/ed25519-key-pair

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@transmute/ed25519-key-pair

``` npm i @transmute/ed25519-key-pair@latest --save ```


Version published
Weekly downloads
13K
increased by3.73%
Maintainers
3
Weekly downloads
 
Created

@transmute/ed25519-key-pair

npm i @transmute/ed25519-key-pair@latest --save
import { Ed25519KeyPair } from '@transmute/ed25519-key-pair';
const k = await Ed25519KeyPair.generate({
  secureRandom: () => {
    return Buffer.from(
      '4e61bc1918ea6a47ae3307331be7798196a1a8e7cfe4b6e8f7c9a5f36017d929',
      'hex'
    );
  },
});
const signer = k.signer();
const verifier = k.verifier();
const message = Buffer.from('hello');
const signature = await signer.sign({ data: message });
const verified = await verifier.verify({ data: message, signature });

FAQs

Package last updated on 29 May 2021

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