use latest Team Crypto methods
This commit is contained in:
parent
5fe1627488
commit
922d7a247b
@ -266,22 +266,16 @@ nThen(function (w) {
|
|||||||
ed: sharedConfig.teamEdKeys,
|
ed: sharedConfig.teamEdKeys,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var rosterSeed = Crypto.Team.createSeed();
|
||||||
|
var rosterKeys = Crypto.Team.deriveMemberKeys(rosterSeed, oscar.curveKeys);
|
||||||
|
|
||||||
Roster.create({
|
Roster.create({
|
||||||
network: oscar.network,
|
network: oscar.network,
|
||||||
channel: sharedConfig.rosterChannel,
|
channel: rosterKeys.channel, //sharedConfig.rosterChannel,
|
||||||
owners: [
|
owners: [
|
||||||
oscar.edKeys.edPublic
|
oscar.edKeys.edPublic
|
||||||
],
|
],
|
||||||
keys: {
|
keys: rosterKeys,
|
||||||
myCurvePublic: oscar.curveKeys.curvePublic,
|
|
||||||
myCurvePrivate: oscar.curveKeys.curvePrivate,
|
|
||||||
|
|
||||||
teamCurvePublic: team.curve.curvePublic,
|
|
||||||
teamCurvePrivate: team.curve.curvePrivate,
|
|
||||||
|
|
||||||
teamEdPrivate: team.ed.edPrivate,
|
|
||||||
teamEdPublic: team.ed.edPublic,
|
|
||||||
},
|
|
||||||
anon_rpc: oscar.anonRpc,
|
anon_rpc: oscar.anonRpc,
|
||||||
lastKnownHash: void 0,
|
lastKnownHash: void 0,
|
||||||
}, w(function (err, roster) {
|
}, w(function (err, roster) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user