mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-03-30 15:08:28 +00:00
16 lines
258 B
JavaScript
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;
|