mirror of
https://github.com/fluencelabs/libp2p-ts
synced 2025-05-19 08:51:19 +00:00
26 lines
516 B
TypeScript
26 lines
516 B
TypeScript
|
// 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;
|
||
|
}
|