Skip to main content
Module

x/ed25519/test/ed25519.helpers.mjs

Fastest 4KB JS implementation of ed25519 elliptic curve. Auditable, high-security, 0-dependency EDDSA signatures compliant with RFC8032 & ZIP215
Go to Latest
File
import { webcrypto } from 'node:crypto';// @ts-ignoreif (!globalThis.crypto) globalThis.crypto = webcrypto; // @ts-ignoreimport * as ed from '../index.js';export * as ed25519 from '../index.js';import { sha512 } from '@noble/hashes/sha512';ed.etc.sha512Sync = (...m) => sha512(ed.etc.concatBytes(...m));
export const ED25519_TORSION_SUBGROUP = [ '0100000000000000000000000000000000000000000000000000000000000000', 'c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac037a', '0000000000000000000000000000000000000000000000000000000000000080', '26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc05', 'ecffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f', '26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc85', '0000000000000000000000000000000000000000000000000000000000000000', 'c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac03fa',];