1
0
mirror of https://github.com/fluencelabs/libp2p-ts synced 2025-03-30 17:01:05 +00:00
2018-06-24 11:18:49 +02:00

26 lines
514 B
TypeScript

// Type definitions for sodium 2.0.3
// Project: https://github.com/paixaop/node-sodium
// Definitions by: Jaco Greeff <https://github.com/jacogr>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node"/>
declare module 'sodium' {
type SodiumKeyPair = {
getPublicKey (): {
baseBuffer: Buffer
}
}
type Sodium = {
Key: {
Sign: {
fromSeed (seed: Buffer): SodiumKeyPair
}
}
}
const sodium: Sodium;
export default sodium;
}