From 1a8e7b097371d801afb841a9f64d565b8bc61471 Mon Sep 17 00:00:00 2001 From: DispatchCommit Date: Wed, 3 Mar 2021 18:55:08 -0800 Subject: [PATCH] Add channel name hex data to streamkey Also adds individual debug fields to help when debugging a channel verify currently --- ui/page/livestream/view.jsx | 62 +++++++++++++++++++++++++++++++++---- 1 file changed, 56 insertions(+), 6 deletions(-) diff --git a/ui/page/livestream/view.jsx b/ui/page/livestream/view.jsx index a956cb740..192d291b0 100644 --- a/ui/page/livestream/view.jsx +++ b/ui/page/livestream/view.jsx @@ -50,7 +50,7 @@ export default function CreatorDashboardPage(props: Props) { function createStreamKey() { if (!activeChannelClaim || !sigData.signature || !sigData.signing_ts) return null; - return `${activeChannelClaim.claim_id}?sig=${sigData.signature}&ts=${sigData.signing_ts}`; + return `${activeChannelClaim.claim_id}?d=${toHex(activeChannelClaim.name)}&s=${sigData.signature}&t=${sigData.signing_ts}`; } /******/ @@ -143,8 +143,10 @@ export default function CreatorDashboardPage(props: Props) { {/* Stream Claim(s) */} { livestreamClaim ? (
-

Your LiveStream Claims

- +

Your LiveStream Claims

+
) : (
@@ -153,9 +155,57 @@ export default function CreatorDashboardPage(props: Props) {
)} - {activeChannelClaim && -
Public Key: {activeChannelClaim.value.public_key}
- } + {/* Debug Stuff */} + { streamKey && ( +
+

Debug Info

+ + {/* Channel ID */} + + + {/* Signature */} + + + {/* Signature TS */} + + + {/* Hex Data */} + + + {/* Channel Public Key */} + +
+ )} )}