Commit Graph

70 Commits

Author SHA1 Message Date
Michael Muré
f606adf62d Merge pull request #15 from MetaMask/repo-rename
adjust to the repo moving to MetaMask org
2025-07-28 13:23:04 +02:00
Michael Muré
406c7d31e9 adjust to the repo moving to MetaMask org 2025-07-28 12:44:35 +02:00
Michael Muré
47611eab8e Merge pull request #14 from INFURA/plc
Support for did:plc
2025-07-22 09:57:01 +02:00
Michael Muré
f77c413386 plc: better HTTP handling 2025-07-21 18:38:13 +02:00
Michael Muré
de98cf811b Add support for DID services and did:plc 2025-07-21 18:18:28 +02:00
Michael Muré
7b88f5587b Merge pull request #13 from INFURA/reorg
reorganise the hierachy of packages
2025-07-10 17:11:22 +02:00
Michael Muré
d6631122aa reorganise the hierachy of packages 2025-07-10 16:51:46 +02:00
Michael Muré
ab19c73a11 Merge pull request #12 from INFURA/rename-package
rename the package to ucan-wg/go-dit-it
2025-07-10 16:06:53 +02:00
Michael Muré
b44cf50620 rename the package to ucan-wg/go-dit-it 2025-07-10 16:05:28 +02:00
Michael Muré
0b255ea35b Merge pull request #11 from INFURA/jwk
complete support for did:key, extensive abstraction layer for crypto handling
2025-07-10 15:48:21 +02:00
Michael Muré
fbe9591a21 crypto: align file name with the VerificationMethod name 2025-07-10 15:44:31 +02:00
Michael Muré
f879d6a14a crypto: actually test signature with different hashes 2025-07-10 15:24:26 +02:00
Michael Muré
a1efc129b5 crypto: cleanup commented code 2025-07-10 12:01:34 +02:00
Michael Muré
e29022920b crypto: catch more overly entusiast casting 2025-07-09 18:55:14 +02:00
Michael Muré
354d905ca2 did🔑 fix missing value 2025-07-09 18:47:55 +02:00
Michael Muré
0c5772714e crypto: catch potential wrong private key type from DER 2025-07-09 18:37:40 +02:00
Michael Muré
20576ae335 document: make the json test ignore the ordering of VerificationMethods 2025-07-09 18:33:54 +02:00
Michael Muré
61617d6af6 crypto: finish RSA 2025-07-09 17:58:09 +02:00
Michael Muré
2284bd6487 did🔑 green test with the test vectors 2025-07-08 12:59:23 +02:00
Michael Muré
ee695fc86d jwk: complete support of everything 2025-07-08 12:58:48 +02:00
Michael Muré
b6db79f12e WIP secp256k1 support 2025-07-08 12:58:05 +02:00
Michael Muré
538ea436ca WIP RSA support 2025-07-08 12:57:49 +02:00
Michael Muré
e6d39009ba crypto: allow to select the hashing algorithm for sign/verify 2025-07-08 12:57:06 +02:00
Michael Muré
98da79494e ed25519: add private key creation from seed 2025-07-03 15:57:21 +02:00
Michael Muré
092443980c did: add document resolution parameters to hint the VerificationMethods 2025-07-03 15:56:37 +02:00
Michael Muré
9b871b5a20 crypto: adjust interface names 2025-07-03 15:55:58 +02:00
Michael Muré
e8ec13ae74 did🔑 add test vectors 2025-07-03 15:53:06 +02:00
Michael Muré
4b95245025 crypto/jwk: add tests 2025-07-03 15:52:23 +02:00
Michael Muré
8eb9cc5ff0 add support for EcdsaSecp256k1VerificationKey2019 2025-07-03 15:52:07 +02:00
Michael Muré
15a5d2f5f9 add support for P256Key2021 2025-07-03 15:49:47 +02:00
Michael Muré
f97dbe76a2 add support for X25519KeyAgreementKey2019 2025-07-03 15:49:21 +02:00
Michael Muré
2b4fe9f922 add support for Ed25519VerificationKey2018 2025-07-03 15:48:27 +02:00
Michael Muré
bb4f309ce5 jwk: move to a specific package, also decode private keys 2025-07-03 15:47:39 +02:00
Michael Muré
bd9851b184 ecdsa: avoid some big.Int conversion 2025-06-26 16:57:51 +02:00
Michael Muré
0e2ec97424 ecdsa: expose coordinates bytes with fixed sizes 2025-06-25 16:54:48 +02:00
Michael Muré
a2188adc68 crypto: hide internals of keys 2025-06-25 16:46:43 +02:00
Michael Muré
8d96b49622 add support for P-521 2025-06-25 16:27:24 +02:00
Michael Muré
5230212c86 add support for P-384 2025-06-25 15:53:29 +02:00
Michael Muré
2809127a08 add support for JsonWebKey2020 2025-06-25 14:28:22 +02:00
Michael Muré
775b693cd0 Merge pull request #10 from INFURA/multikey
add support for the Multikey verification method
2025-06-25 10:59:20 +02:00
Michael Muré
0026cba0ac avoid allocations for a static map 2025-06-24 18:49:46 +02:00
Michael Muré
875c07db66 add support for the Multikey verification method 2025-06-24 18:15:05 +02:00
Michael Muré
4503b2e4b9 Merge pull request #9 from INFURA/crypto
add a crypto base layer that abstract various keypair type, + test/bench suite
2025-06-24 16:09:26 +02:00
Michael Muré
4bf944c0b7 crypto: rename constants to more appropriate names 2025-06-24 16:06:50 +02:00
Michael Muré
371d9f55b2 crypto: reasonably complete the keypair absraction layer, and use it 2025-06-24 14:05:42 +02:00
Michael Muré
162aff3046 crypto: complete p256, add more tests and refine the signatures 2025-06-23 14:13:48 +02:00
Michael Muré
5be4ab8175 add a crypto base layer that abstract various keypair type, + test/bench suite 2025-06-19 18:17:54 +02:00
Michael Muré
6bd03b4038 Merge pull request #7 from INFURA/key-test
ed25519/x25519: simplify key implementation, add tests
2025-06-18 14:20:10 +02:00
Michael Muré
807dd553df ed25519/x25519: simplify key implementation, add tests 2025-06-18 12:11:52 +02:00
Michael Muré
47fa1645c6 Merge pull request #6 from INFURA/usage
Add examples and refine usage (key agreement in particular)
2025-06-18 11:11:42 +02:00