Skip to main content
Module

x/ed25519/mod.ts

Fastest JS implementation of ed25519, x25519 & ristretto255. Independently audited, high-security, 0-dependency EDDSA sigs & ECDH key agreement
Go to Latest
File
// prettier-ignoreimport { CURVE, ExtendedPoint, Point, RistrettoPoint, getPublicKey, sign, verify, sync, utils} from './index.ts';import { crypto } from 'https://deno.land/std@0.153.0/crypto/mod.ts';
utils.sha512 = async (...msgs: Uint8Array[]): Promise<Uint8Array> => { return new Uint8Array(await crypto.subtle.digest('SHA-512', utils.concatBytes(...msgs)));};utils.sha512Sync = (...msgs: Uint8Array[]): Uint8Array => { return new Uint8Array(crypto.subtle.digestSync('SHA-512', utils.concatBytes(...msgs)));};
// prettier-ignoreexport { CURVE, ExtendedPoint, Point, RistrettoPoint, getPublicKey, sign, verify, sync, utils};