Skip to content

Commit

Permalink
fix type url
Browse files Browse the repository at this point in the history
  • Loading branch information
dnys1 committed Mar 9, 2024
1 parent 0a1a770 commit 3ef8df6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/corks/lib/src/signer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ import 'package:meta/meta.dart';
mixin Signable implements ToProto {
Future<SignedBlock> sign(Signer signer) async {
final proto = toProto();
final typeUrl = utf8.encode(proto.info_.qualifiedMessageName);
await signer.sign(typeUrl);
final typeUrl = 'dev.celest/${proto.info_.qualifiedMessageName}';
await signer.sign(utf8.encode(typeUrl));
final bytes = proto.writeToBuffer();
final signature = await signer.sign(bytes);
return SignedBlock(
block: bytes,
typeUrl: proto.info_.qualifiedMessageName,
typeUrl: typeUrl,
signature: signature,
);
}
Expand Down

0 comments on commit 3ef8df6

Please sign in to comment.