pathchain 1.0.13 → 1.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/maker.js +4 -4
  2. package/package.json +1 -1
package/maker.js CHANGED
@@ -79,7 +79,8 @@ function secret(author, format) {
79
79
 
80
80
  var buffer = secret_pb.secret.encode({
81
81
  register: "moments/"+register_moment_hash,
82
- author: author,
82
+ author: "entities/"+author,
83
+ user: "entities/"+author,
83
84
  used: false,
84
85
  tag: "secrets/"+secret_hash,
85
86
  })
@@ -130,9 +131,8 @@ function pioneer(xbigbang, format) {
130
131
  var pioneer_hash = sha256(register_moment_hash + "_" + birthday_moment);
131
132
 
132
133
  var buffer = entity.entity.encode({
133
- birthday: "moments/"+birthday_moment,
134
134
  register: "moments/"+register_moment_hash,
135
- invite: "entities/"+pioneer_hash, // points to itself as ancestor entity in the chain
135
+ ancestor: "entities/"+pioneer_hash, // points to itself as ancestor entity in the chain
136
136
  tag: "entities/"+pioneer_hash,
137
137
  })
138
138
 
@@ -190,7 +190,7 @@ function entity(xsecret, format) {
190
190
 
191
191
  var buffer = entity.entity.encode({
192
192
  register: "moments/"+register_moment_hash,
193
- ancestor: ancestor_entity_hash,
193
+ ancestor: "entities/"+ancestor_entity_hash,
194
194
  tag: "entities/"+entity_hash,
195
195
  })
196
196
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pathchain",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "dependencies": {
5
5
  "date-and-time": "^3.0.2",
6
6
  "empty-dir": "^3.0.0",