From 5a86b55c2905ae31ca0298e67e9b4eee5feff347 Mon Sep 17 00:00:00 2001 From: MohamedElmdary Date: Thu, 16 Nov 2023 16:30:23 +0200 Subject: [PATCH] Add support hex based seed --- .../decisions/support_hex_based_seed.md | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 packages/grid_client/docs/architecture/decisions/support_hex_based_seed.md diff --git a/packages/grid_client/docs/architecture/decisions/support_hex_based_seed.md b/packages/grid_client/docs/architecture/decisions/support_hex_based_seed.md new file mode 100644 index 0000000000..900e0c832e --- /dev/null +++ b/packages/grid_client/docs/architecture/decisions/support_hex_based_seed.md @@ -0,0 +1,25 @@ +# 3. support_hex_based_seed.md + +Date: 2023-11-16 + +## Status + +Done + +## Context + +Add support for hex based seed (Aka. hexSeed). Basically it's an algorithm derive a hexSeed from regular mnemonic which can be used while interacting with chain without exposing user's mnemonic. + +Note: Threefold Connector App is using hex based seed so now users can copy their hexSeed and use it directly in our clients + +## Decision + +Currently, We added a `toHexSeed` helper to convert any passed mnemonic into hexSeed and if the user passed hexSeed it stays as it is. + +Example: +mnemonic: "word position fox tonight initial genuine liquid jewel almost craft broom maximum" +hexSeed: "0xd8c3909af2227220a5ad15cc5fe1aeb8bd620b50b96d910220c2062c18b28232" + +## Consequences + +There is no specific consequences related.