Skip to content

Commit

Permalink
did:dht bep44 seq should be seconds since epoch (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
Diane Huxley authored May 14, 2024
1 parent 8c3c26f commit 704d6d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web5/lib/src/dids/did_dht/did_dht.dart
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class DidDht {
return await keyManager!.sign(keyAlias, data);
}

final seq = DateTime.now().microsecondsSinceEpoch;
final seq = DateTime.now().millisecondsSinceEpoch ~/ 1000;
final message = await Bep44Message.create(dnsPacket.encode(), seq, sign);

final gatewayUrl = Uri.parse('$gatewayUri/$id');
Expand Down

0 comments on commit 704d6d3

Please sign in to comment.