From 75d8c47398093f13d61b9090ce6b8da4fdc8c63d Mon Sep 17 00:00:00 2001 From: Shree Vatsa N Date: Tue, 24 Sep 2024 16:36:25 +0530 Subject: [PATCH] chainspace: Fix authorization-id digest calculation (#241) Signed-off-by: Shreevatsa N --- packages/chain-space/src/ChainSpace.chain.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/chain-space/src/ChainSpace.chain.ts b/packages/chain-space/src/ChainSpace.chain.ts index 01425027..f20585c5 100644 --- a/packages/chain-space/src/ChainSpace.chain.ts +++ b/packages/chain-space/src/ChainSpace.chain.ts @@ -180,7 +180,7 @@ export async function getUriForSpace( .toU8a() const authDigest = blake2AsHex( - Uint8Array.from([...scaleEncodedAuthDigest, ...scaleEncodedAuthDelegate]) + Uint8Array.from([...scaleEncodedAuthDigest, ...scaleEncodedAuthDelegate, ...scaleEncodedAuthDelegate]) ) const authorizationUri = hashToUri(