diff --git a/Images/image-20231222152103913.png b/Images/image-20231222152103913.png
new file mode 100644
index 0000000..b2f059a
Binary files /dev/null and b/Images/image-20231222152103913.png differ
diff --git a/Images/image-20231222152135424.png b/Images/image-20231222152135424.png
new file mode 100644
index 0000000..c7bab5d
Binary files /dev/null and b/Images/image-20231222152135424.png differ
diff --git a/README.md b/README.md
index f6b7ab2..223a3ee 100644
--- a/README.md
+++ b/README.md
@@ -4,9 +4,11 @@
+![image-20231222152135424](Images/image-20231222152135424.png)
+
+
-![image-20230707152849634](Images/image-20230707152849634.png)
@@ -168,6 +170,92 @@ To get back the original 23 words.
+### OnChain Code
+
+https://github.com/rchak007/plutusAppsJambhala/blob/main/src/Contracts/SeedPhraseManager.hs
+
+
+
+#### Datum
+
+```haskell
+data SeedPhraseDatum = SeedPhraseDatum
+ { encryptedWordsWithIndex :: BuiltinByteString,
+ ownerPKH :: PubKeyHash
+ }
+
+unstableMakeIsData ''SeedPhraseDatum
+
+```
+
+#### Parameterized
+
+```haskell
+data SeedPhraseParam = SeedPhraseParam
+ { pInfoHash :: BuiltinByteString
+ }
+ deriving (Haskell.Show)
+```
+
+
+
+#### Redeemer
+
+```haskell
+data SeedPhraseRedeem = Unit ()
+```
+
+
+
+#### Validator
+
+```haskell
+mkRequestValidator :: SeedPhraseParam -> SeedPhraseDatum -> () -> ScriptContext -> Bool
+mkRequestValidator sParam dat _ ctx =
+ traceIfFalse "signedByOwner: Not signed by ownerPKH" signedByOwner
+ where
+ txinfo :: TxInfo
+ txinfo = scriptContextTxInfo ctx
+
+ signedByOwner :: Bool
+ signedByOwner = txSignedBy txinfo $ ownerPKH dat
+{-# INLINEABLE mkRequestValidator #-}
+```
+
+
+
+
+
+#### Deploy
+
+To get the .plutus script
+
+https://github.com/rchak007/plutusAppsJambhala/blob/main/src/Deploy.hs
+
+
+
+
+
+### OffChain Code
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
### UI for the Dapp
diff --git a/pages/index.tsx b/pages/index.tsx
index 512769e..e200d3e 100644
--- a/pages/index.tsx
+++ b/pages/index.tsx
@@ -28,7 +28,7 @@ const Home: NextPage = () => {
}
// for Redirect to offChain.tsx
- router.push('/offChain');
+ router.push('/offChainV2');
}, [walletStore.address])
diff --git a/pages/offChain.tsx b/pages/offChain.tsx
index ad4286c..725cd63 100644
--- a/pages/offChain.tsx
+++ b/pages/offChain.tsx
@@ -1063,7 +1063,9 @@ const offChain: NextPage = () => {
{compPassword} {/* we will re-use this in Redeem so make it a variable */}
+
Tx Hash: {txHash}
} + {/* Include other transaction-related components here */} +Decrypted Seed Phrase and Index : {decryptWord}
} + {/* Include other display components or messages here */} +