We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49e18a9 commit 6024536Copy full SHA for 6024536
src/services/nilauth/client.ts
@@ -274,9 +274,11 @@ export class NilauthClient {
274
const costUnil = await this.subscriptionCost(blindModule);
275
const payerDid = payerKeypair.toDid("key");
276
277
+ // Key ordering must match what nilauth expects we need to do canonical Json serialization
278
+ // to resolve this see - https://github.com/NillionNetwork/nilauth/issues/50
279
const onChainPayload = {
- nonce: bytesToHex(randomBytes(16)),
280
service_public_key: this.nilauthPublicKey,
281
+ nonce: bytesToHex(randomBytes(16)),
282
blind_module: blindModule,
283
payer_did: Did.serialize(payerDid),
284
subscriber_did: Did.serialize(subscriberDid),
0 commit comments