orbit-db/Post.js
2015-12-26 19:05:51 +02:00

16 lines
258 B
JavaScript

'use strict';
var encryption = require('./Encryption');
class Post {
constructor(content) {
this.content = content;
}
encrypt(privkey, pubkey) {
this.content = encryption.encrypt(this.content, privkey, pubkey);
}
}
module.exports = Post;