mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-05-22 06:46:38 +00:00
Remove obsolete dep
This commit is contained in:
parent
dd06a0ae60
commit
4f78b28cae
@ -1,7 +1,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const Post = require('./BasePost');
|
const Post = require('./BasePost');
|
||||||
const Encryption = require('orbit-common/lib/Encryption');
|
// const Encryption = require('orbit-common/lib/Encryption');
|
||||||
|
|
||||||
// Simplest type of post: a string
|
// Simplest type of post: a string
|
||||||
class TextPost extends Post {
|
class TextPost extends Post {
|
||||||
@ -10,10 +10,9 @@ class TextPost extends Post {
|
|||||||
this.content = content;
|
this.content = content;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: make sure this works
|
// encrypt(privkey, pubkey) {
|
||||||
encrypt(privkey, pubkey) {
|
// this.content = Encryption.encrypt(this.content, privkey, pubkey);
|
||||||
this.content = Encryption.encrypt(this.content, privkey, pubkey);
|
// }
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = TextPost;
|
module.exports = TextPost;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user