Nicholas Molnar
|
971d080ab5
|
Code cleanup
|
2022-05-27 20:37:14 +10:00 |
|
Nicholas Molnar
|
41f01c6d60
|
Fix comment
|
2022-05-27 20:37:14 +10:00 |
|
Nicholas Molnar
|
c77b74c10c
|
Add/delete decryption keys
|
2022-05-27 20:37:14 +10:00 |
|
Nicholas Molnar
|
5faa186b34
|
Add decryption keys
|
2022-05-27 20:37:14 +10:00 |
|
Nicholas Molnar
|
4734e4b7c7
|
Finish implementation
|
2022-05-27 20:37:14 +10:00 |
|
Nicholas Molnar
|
691de1a194
|
Add proto
|
2022-05-27 20:37:14 +10:00 |
|
Franck Royer
|
c85c39a427
|
Consolidate signature verification logic
|
2022-05-20 12:06:14 +10:00 |
|
Franck Royer
|
2ed3580584
|
Remove dupe function
|
2022-05-20 11:49:00 +10:00 |
|
Franck Royer
|
6ace11f18f
|
Remove unused interface
|
2022-05-20 11:45:48 +10:00 |
|
Franck Royer
|
4cb8769271
|
Remove unused constant
|
2022-05-20 11:44:58 +10:00 |
|
Franck Royer
|
b93c876043
|
Consolidate compress public key functions
|
2022-05-20 11:42:01 +10:00 |
|
Franck Royer
|
479081f611
|
Remove unnecessary abstract class
|
2022-05-20 11:38:44 +10:00 |
|
Franck Royer
|
5e1cd78288
|
Remove unused code
|
2022-05-20 11:27:57 +10:00 |
|
Franck Royer
|
17c8335d6f
|
Remove file
|
2022-05-20 11:27:15 +10:00 |
|
Franck Royer
|
c6189170e0
|
Remove unused code
|
2022-05-20 11:05:44 +10:00 |
|
Franck Royer
|
ee8ba791cc
|
Move ecdsa sign to crypto.ts
|
2022-05-20 10:59:33 +10:00 |
|
Franck Royer
|
b3f4686da1
|
Use Uint8Array instead of hex string for hash
|
2022-05-20 10:59:32 +10:00 |
|
Franck Royer
|
595fb877eb
|
Move keccak256 function to crypto.ts
|
2022-05-20 10:59:32 +10:00 |
|
Franck Royer
|
20b3b5b667
|
Move common crypto functions to crypto.ts
|
2022-05-20 10:59:32 +10:00 |
|
Franck Royer
|
dbdf37a31d
|
Remove usage of Buffer from version_1.ts
|
2022-05-20 10:32:45 +10:00 |
|
Franck Royer
|
89de2e3c77
|
Remove buf variable
|
2022-05-20 10:32:45 +10:00 |
|
Franck Royer
|
06b4ab581d
|
Remove Buffer from isMessageSigned
|
2022-05-20 10:32:45 +10:00 |
|
Franck Royer
|
ce0c5cef07
|
Pass Uint8Array when possible
|
2022-05-20 10:32:45 +10:00 |
|
Franck Royer
|
5648f72d3d
|
Extract is message signed logic
|
2022-05-20 10:32:45 +10:00 |
|
Franck Royer
|
bd9d592fda
|
Remove Buffer from getPayloadSize
|
2022-05-20 10:32:45 +10:00 |
|
Franck Royer
|
33f52ef56d
|
Extract getPayloadSize logic
|
2022-05-20 10:32:45 +10:00 |
|
Franck Royer
|
95485f0a69
|
Remove Buffer from getSizeOfPayloadSizeField
|
2022-05-20 10:32:44 +10:00 |
|
Franck Royer
|
9e09de831f
|
Extract decoding of size of payload size field
|
2022-05-20 10:32:44 +10:00 |
|
Franck Royer
|
0964425a12
|
Remove Buffer from validateDataIntegrity
|
2022-05-20 10:32:44 +10:00 |
|
Franck Royer
|
64ea36faa3
|
Remove Buffer from ecRecoverPubKey
|
2022-05-20 10:32:44 +10:00 |
|
Franck Royer
|
76777744f0
|
Remove Buffer from decrypt*
|
2022-05-20 10:32:44 +10:00 |
|
Franck Royer
|
181ba489be
|
Remove Buffer from encrypt*
|
2022-05-20 10:32:44 +10:00 |
|
Franck Royer
|
5d32877357
|
Remove Buffer from getSignature , getHash , getPublicKey
|
2022-05-20 10:32:44 +10:00 |
|
Franck Royer
|
6929805425
|
Remove Buffer from clearEncode
|
2022-05-20 10:32:44 +10:00 |
|
Franck Royer
|
564fee29eb
|
Remove Buffer from addPayloadSizeField
|
2022-05-20 10:32:44 +10:00 |
|
Franck Royer
|
661c6227e7
|
Move type definition to the top
|
2022-05-20 10:32:43 +10:00 |
|
Franck Royer
|
ab3b23f100
|
Remove Buffer from symmetric.ts
|
2022-05-20 10:32:43 +10:00 |
|
Franck Royer
|
aad678a708
|
Add a timeout to waitForRemotePeer
|
2022-05-19 16:04:38 +10:00 |
|
Franck Royer
|
06930c15dc
|
Remove unneeded variable
|
2022-05-19 16:04:06 +10:00 |
|
Franck Royer
|
d9940f4d9b
|
Simplify async iterator usage
The iterator will return only once there is a first item available.
Hence, there is no need to add an observer on `change:protocols` event.
|
2022-05-19 16:04:06 +10:00 |
|
Franck Royer
|
4b43db6daa
|
Change default to wait for Relay only
Store is not used by all applications, also, note all
nodes have store enabled.
Default value should prefer working software over feature complexity.
|
2022-05-19 16:04:04 +10:00 |
|
Franck Royer
|
4639537fd6
|
Ensure ENR.create is used instead of the constructor
|
2022-05-19 15:17:19 +10:00 |
|
Franck Royer
|
1d8e3837ea
|
Replace deprecated multihashes with multiformats
|
2022-05-19 15:17:16 +10:00 |
|
Franck Royer
|
e8ba7f6440
|
Calculate peer id at creation
As the peer id method calculation method will become async.
|
2022-05-19 15:16:35 +10:00 |
|
Franck Royer
|
b708077483
|
Remove assert usage
|
2022-05-13 17:28:38 +10:00 |
|
Franck Royer
|
c41dfcba40
|
test: Increase timeout
|
2022-05-10 15:24:53 +10:00 |
|
Franck Royer
|
7a15fbf8f8
|
test: Ensure private key is not 0
|
2022-05-10 15:07:17 +10:00 |
|
Franck Royer
|
50fa2d881d
|
Use @noble/secp2156k1 's sha3 util
|
2022-05-10 10:59:27 +10:00 |
|
Franck Royer
|
9829cc2cab
|
Use @noble/secp2156k1 's random byte util
|
2022-05-10 10:47:13 +10:00 |
|
Franck Royer
|
1fd32639b9
|
Private Key 0..0 is not valid
|
2022-05-09 23:10:16 +10:00 |
|