mirror of
https://github.com/fluencelabs/libp2p-ts
synced 2025-03-27 15:31:04 +00:00
26 lines
514 B
TypeScript
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;
|
|
}
|