13 lines
327 B
TypeScript
13 lines
327 B
TypeScript
declare module 'curve25519-n' {
|
|
export function generateKeyPair(
|
|
privKey: Buffer
|
|
): { pubKey: Buffer; privKey: Buffer };
|
|
|
|
export function calculateSignature(privKey: Buffer, message: Buffer): Buffer;
|
|
|
|
export function verifySignature(
|
|
publicKey: Buffer,
|
|
message: Buffer,
|
|
signature: Buffer
|
|
): Buffer;
|
|
}
|