From 3ef8df60ddfa3a39981ea77ed46545e5c6e37b51 Mon Sep 17 00:00:00 2001 From: Dillon Nys Date: Sat, 9 Mar 2024 08:40:52 -0800 Subject: [PATCH] fix type url --- packages/corks/lib/src/signer.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/corks/lib/src/signer.dart b/packages/corks/lib/src/signer.dart index 961bceb3..94d1c52b 100644 --- a/packages/corks/lib/src/signer.dart +++ b/packages/corks/lib/src/signer.dart @@ -10,13 +10,13 @@ import 'package:meta/meta.dart'; mixin Signable implements ToProto { Future 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, ); }