diff --git a/lib/core.js b/lib/core.js index ac1432ce..f14492b2 100644 --- a/lib/core.js +++ b/lib/core.js @@ -321,7 +321,7 @@ module.exports = class Core { for (const val of values) batch.append(val) const hash = batch.hash() - batch.signature = await auth.sign(batch.signable(hash), batch) + batch.signature = await auth.sign(batch.signable(hash), batch, hash) const entry = { userData: null, @@ -357,7 +357,7 @@ module.exports = class Core { } _signed (batch, hash, auth = this.defaultAuth) { - return auth.verify(batch.signable(hash), batch.signature, batch) + return auth.verify(batch.signable(hash), batch.signature, batch, hash) } async _verifyExclusive ({ batch, bitfield, value, from }) {