@transmute/ed25519-key-pair
    TypeScript icon, indicating that this package has built-in type declarations

    0.7.0-unstable.60 • Public • Published

    @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(
          '4f66b355aa7b0980ff901f2295b9c562ac3061be4df86703eb28c612faae6578',
          '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 });

    Keywords

    none

    Install

    npm i @transmute/ed25519-key-pair

    DownloadsWeekly Downloads

    3,490

    Version

    0.7.0-unstable.60

    License

    Apache-2.0

    Unpacked Size

    382 kB

    Total Files

    66

    Last publish

    Collaborators

    • or13
    • transmute-ci