@@ -170,21 +170,21 @@ const tinySignatureTest = async () => {
170170} ;
171171
172172const tinyBtcSignatureTest = async ( ) => {
173- console . log ( '\n🔐🔹 TinySecp256k1 Signature Test 🔹🔐\n' ) ;
173+ console . log ( '\n🔐🔹 TinySecp256k1 BTC Signature Test 🔹🔐\n' ) ;
174174
175175 const signer = new TinyChain . Btc256k1 ( ) ;
176176 await signer . init ( ) ;
177177
178178 const privateKey = signer . getPrivateKeyHex ( ) ;
179179 const publicKey = signer . getAddress ( ) ;
180180
181- console . log ( '🗝️ Keys' ) ;
181+ console . log ( '🗝️ Keys (BTC) ' ) ;
182182 console . log ( '──────────────────────────────' ) ;
183183 console . log ( `🔒 Private Key : ${ privateKey } ` ) ;
184184 console . log ( `🔓 Public Key : ${ publicKey } \n` ) ;
185185
186186 const recoverableMessage = 'Hello world' ;
187- console . log ( '♻️ Signing message' ) ;
187+ console . log ( '♻️ Signing message (BTC) ' ) ;
188188 console . log ( '──────────────────────────────' ) ;
189189 const sig = signer . signMessage ( recoverableMessage ) ;
190190 console . log ( `📄 Signature (Recoverable): ${ sig . toString ( 'hex' ) } ` ) ;
@@ -195,25 +195,25 @@ const tinyBtcSignatureTest = async () => {
195195 console . log ( `🔍 Message Signature Valid? ${ isValid } \n` ) ;
196196 console . log ( `📄 Message Signature (Recoverable): ${ recoveredPubKey } ` ) ;
197197
198- console . log ( '✅ Test Completed!\n' ) ;
198+ console . log ( '✅ Test Completed! (BTC) \n' ) ;
199199} ;
200200
201201const testTinyEthSecp256k1 = async ( ) => {
202- console . log ( '\n🔐🔹 TinySecp256k1 Signature Test 🔹🔐\n' ) ;
202+ console . log ( '\n🔐🔹 TinySecp256k1 ETH Signature Test 🔹🔐\n' ) ;
203203
204204 const signer = new TinyChain . Eth256k1 ( ) ;
205205 await signer . init ( ) ;
206206
207207 const privateKey = signer . getPrivateKeyHex ( ) ;
208208 const publicKey = signer . getAddress ( ) ;
209209
210- console . log ( '🗝️ Keys' ) ;
210+ console . log ( '🗝️ Keys (ETH) ' ) ;
211211 console . log ( '──────────────────────────────' ) ;
212212 console . log ( `🔒 Private Key : ${ privateKey } ` ) ;
213213 console . log ( `🔓 Public Key : ${ publicKey } \n` ) ;
214214
215215 const recoverableMessage = 'Hello world' ;
216- console . log ( '♻️ Signing message' ) ;
216+ console . log ( '♻️ Signing message (ETH) ' ) ;
217217 console . log ( '──────────────────────────────' ) ;
218218 const sig = signer . signMessage ( recoverableMessage ) ;
219219 console . log ( `📄 Signature (Recoverable): ${ sig . toString ( 'hex' ) } ` ) ;
@@ -224,7 +224,7 @@ const testTinyEthSecp256k1 = async () => {
224224 console . log ( `🔍 Message Signature Valid? ${ isValid } \n` ) ;
225225 console . log ( `📄 Message Signature (Recoverable): ${ recoveredPubKey } ` ) ;
226226
227- console . log ( '✅ Test Completed!\n' ) ;
227+ console . log ( '✅ Test Completed! (ETH) \n' ) ;
228228} ;
229229
230230const tinyChainSimulation = async ( ) => {
0 commit comments