Skip to content

Commit

Permalink
Add support hex based seed
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedElmdary committed Nov 16, 2023
1 parent b6d3069 commit 5a86b55
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit 5a86b55

Please sign in to comment.