Commit Graph

42 Commits

Author SHA1 Message Date
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
Michael Muré
0e3e467c83 Add examples and refine usage (key agreement in particular) 2025-06-17 16:49:43 +02:00
Michael Muré
f107efb7c0 Merge pull request #5 from INFURA/document-parse
add support for decoding arbitrary Json DID documents
2025-06-17 16:22:54 +02:00
Michael Muré
a30e345aef fix incorrect prealloc
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-06-12 18:21:02 +02:00
Michael Muré
377db50ef8 add support for decoding arbitrary Json DID documents 2025-06-12 17:20:56 +02:00
Michael Muré
745dcd1990 Merge pull request #4 from INFURA/syntaxt-check
did: add and complete DID and DID-URL syntax check
2025-06-12 11:12:10 +02:00
Michael Muré
7fabdda104 did: add and complete DID and DID-URL syntax check 2025-06-11 17:42:45 +02:00
Michael Muré
be5313d5fc Merge pull request #3 from INFURA/x25519keys
x25519: use go's ecdh keys instead of a custom type
2025-05-08 15:26:38 +09:00
Michael Muré
265c97f9f4 x25519: use go's ecdh keys instead of a custom type 2025-05-08 08:23:47 +02:00
Michael Muré
1d61fcf2a0 Merge pull request #2 from INFURA/interface-cleanup
cleanup the main interfaces, document
2025-05-08 15:21:42 +09:00
Michael Muré
c8c3760d8d cleanup the main interfaces, document 2025-05-08 08:20:25 +02:00
Michael Muré
0816c74565 Merge pull request #1 from INFURA/x25519
fix ed25519 --> x25519 conversion and usage in did:key
2025-05-06 23:54:57 +09:00
Michael Muré
0718ee1ac2 fix ed25519 --> x25519 conversion and usage in did:key 2025-05-06 13:20:18 +02:00
Michael Muré
eca71e594d dev guidelines, some cleanup 2025-04-09 14:16:59 +02:00
Michael Muré
da87ebd5e8 WIP 2025-03-18 12:35:25 +01:00
Michael Muré
2a934de817 little bit of reorg 2025-03-16 13:12:40 +01:00
Michael Muré
fe5b469bf9 good progress on did:key, x25519 2025-03-16 12:17:33 +01:00
Michael Muré
ef067492f3 readme: a bit more flesh 2025-03-13 12:27:11 +01:00
Michael Muré
6ff62620e1 add GHA workflow for testing and bench 2025-03-13 12:26:47 +01:00
Michael Muré
63c51774b6 marginally more working 2025-03-13 11:26:39 +01:00
Michael Muré
581b06738c initial import, barely working 2025-03-12 14:14:43 +01:00