libp2p-ts/sodium/index.d.ts

26 lines
516 B
TypeScript
Raw Normal View History

2018-06-24 08:41:00 +02:00
// Type definitions for store 2.0.12
// Project: https://github.com/marcuswestin/store.js
// 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;
}