Commit Graph

  • 7749c368a9
    Merge pull request #21 from codex-storage/bump-constantine-gcc14 main Balazs Komuves 2025-01-21 17:18:31 +01:00
  • 4e2c6e619b
    Add 2.0.14 to testing matrix Arnaud 2025-01-07 10:27:25 +01:00
  • f5a3511349
    Update constantine to the last commit hash Arnaud 2024-12-02 12:37:53 +01:00
  • e173dd817b
    bumps constantine, updates curves benbierens 2024-08-08 14:45:13 +02:00
  • 29efc3793a re-enable Nim 2.0 in CI constantine-0.1.0 Mark Spanbroek 2024-07-15 12:30:56 +02:00
  • 4104602f85 update constantine to version 0.1.0 Mark Spanbroek 2024-07-15 12:29:09 +02:00
  • 8a54c69032
    pin the constantine dependency (there was a breaking refactoring recently) Balazs Komuves 2024-07-12 12:06:22 +02:00
  • ad26df8846
    Merge pull request #19 from codex-storage/export-fromBytes Ben Bierens 2024-01-18 09:09:24 +01:00
  • 74dbf15788
    Merge pull request #18 from codex-storage/convert-from-32-bytes Ben Bierens 2024-01-18 09:09:18 +01:00
  • 0346982f2c
    exports fromBytes from the library Eric 2024-01-09 12:29:02 +11:00
  • eef2603c11
    Adds equality compare for field elements benbierens 2024-01-08 11:29:30 +01:00
  • 3b403b0752
    fix style check Dmitriy Ryajov 2023-12-22 12:51:53 -06:00
  • ff6e7589ac
    Adds test for preserving field element after conversion benbierens 2023-12-22 15:43:57 +01:00
  • 1d12c38584
    Adds check to ensure value fits in prime field. benbierens 2023-12-22 13:17:00 +01:00
  • fbf95e21b8
    Adds method for converting 32 bytes to field element benbierens 2023-12-21 14:24:43 +01:00
  • aceccb2367
    style check complains about style in codex Dmitriy Ryajov 2023-12-18 16:03:48 -06:00
  • 0cfecf7d78
    style check complains about style in codex pad-on-leftover Dmitriy Ryajov 2023-12-18 16:03:48 -06:00
  • c3c8228436
    roots changes for even sized 31 bit chunks Dmitriy Ryajov 2023-12-17 16:47:22 -06:00
  • 59f7b0545e
    fix empty seq support Dmitriy Ryajov 2023-12-17 16:46:36 -06:00
  • 7be0e6dfe7
    fix tests to support correct padding Dmitriy Ryajov 2023-12-17 16:45:50 -06:00
  • a9a0c1ba78
    don't pad unless needed Dmitriy Ryajov 2023-12-16 22:40:50 -06:00
  • 9be7b0c134
    Merge pull request #16 from codex-storage/fix-undeclared-curve Ben Bierens 2023-11-27 12:35:15 +01:00
  • 77f0aafacc Fix: workaround for "undeclared identifier: 'getCurveOrder'" Mark Spanbroek 2023-11-27 12:27:26 +01:00
  • c4569bcba0 Add sponge-merkle digest Mark Spanbroek 2023-11-22 11:24:53 +01:00
  • cfb4f97023
    Merge pull request #15 from codex-storage/integers-to-field Ben Bierens 2023-11-24 12:39:03 +01:00
  • ddff11d4f0 Convert all types of integers to field element Mark Spanbroek 2023-11-23 17:07:17 +01:00
  • f76d8dd654 Move int.toF() function into io module Mark Spanbroek 2023-11-23 16:37:41 +01:00
  • d98ddc9d9f Add sponge-merkle digest Mark Spanbroek 2023-11-22 11:24:53 +01:00
  • b953cde5f8 Check streaming algorithm against reference implementation Mark Spanbroek 2023-11-23 14:25:16 +01:00
  • fe3e3230f4 Streaming API for merkle root calculation Mark Spanbroek 2023-11-22 09:47:42 +01:00
  • a06955f8d6 Check streaming algorithm against reference implementation Mark Spanbroek 2023-11-23 14:25:16 +01:00
  • 202b2ef5c3 Streaming API for merkle root calculation Mark Spanbroek 2023-11-22 09:47:42 +01:00
  • 16e20ee8f7 Add test vectors Mark Spanbroek 2023-11-20 11:37:22 +01:00
  • c4b4936e26 Handle merkleRoot of empty sequence Mark Spanbroek 2023-11-20 11:16:25 +01:00
  • cce9c13a04 Remove if statement at compile time Mark Spanbroek 2023-11-13 14:15:38 +01:00
  • a311828b9e Do not expose isBottomLayer parameter on API Mark Spanbroek 2023-11-13 14:12:28 +01:00
  • 4bd56bb839 Ensure that merkle root of single element is compressed Mark Spanbroek 2023-11-13 14:09:51 +01:00
  • 9c7690ff0c Use different compress functions for bottom layer and odd nodes Mark Spanbroek 2023-11-13 14:01:21 +01:00
  • 94f9d1fdd3 Move merkleRoot() into its own module Mark Spanbroek 2023-11-13 13:17:22 +01:00
  • 7d0ad4f732 Add test vectors Mark Spanbroek 2023-11-20 11:37:22 +01:00
  • 7d02d4f453 Handle merkleRoot of empty sequence Mark Spanbroek 2023-11-20 11:16:25 +01:00
  • aef3b060bb Remove if statement at compile time Mark Spanbroek 2023-11-13 14:15:38 +01:00
  • 3c8486f73c Do not expose isBottomLayer parameter on API Mark Spanbroek 2023-11-13 14:12:28 +01:00
  • 70c516d93e Ensure that merkle root of single element is compressed Mark Spanbroek 2023-11-13 14:09:51 +01:00
  • b30889ada4 Use different compress functions for bottom layer and odd nodes Mark Spanbroek 2023-11-13 14:01:21 +01:00
  • 7e18c0f46b Move merkleRoot() into its own module Mark Spanbroek 2023-11-13 13:17:22 +01:00
  • af67374929 Fix: add missing import Mark Spanbroek 2023-11-15 15:04:25 +01:00
  • c710ec443d Fix: add missing import Mark Spanbroek 2023-11-15 15:04:25 +01:00
  • 8b7a4a3151 Allow for keyed compression Mark Spanbroek 2023-11-13 13:08:09 +01:00
  • 6fddd3e39e Move compress() into its own module Mark Spanbroek 2023-11-13 11:57:55 +01:00
  • ef45082d59 Allow for keyed compression Mark Spanbroek 2023-11-13 13:08:09 +01:00
  • ce37326d58 Move compress() into its own module Mark Spanbroek 2023-11-13 11:57:55 +01:00
  • 457b8623be Add usage example to Readme Mark Spanbroek 2023-11-09 14:44:38 +01:00
  • 70c03b834f Add Sponge.digest() call that takes bytes Mark Spanbroek 2023-11-09 14:26:54 +01:00
  • d8a176930d Pad byte sequences with 0x1 Mark Spanbroek 2023-11-08 16:01:40 +01:00
  • ce1d79a59b Streaming API for converting bytes to field elements Mark Spanbroek 2023-11-08 13:25:23 +01:00
  • fd260207b2 Remove unused import Mark Spanbroek 2023-11-08 13:12:10 +01:00
  • 4825c0a88c Add streaming API for sponge Mark Spanbroek 2023-11-08 13:08:33 +01:00
  • bb1933d570 Add usage example to Readme Mark Spanbroek 2023-11-09 14:44:38 +01:00
  • a11cb85502 Add Sponge.digest() call that takes bytes Mark Spanbroek 2023-11-09 14:26:54 +01:00
  • 90f38fee8b Pad byte sequences with 0x1 Mark Spanbroek 2023-11-08 16:01:40 +01:00
  • 45857e4afb Streaming API for converting bytes to field elements Mark Spanbroek 2023-11-08 13:25:23 +01:00
  • 9839752e73 Remove unused import Mark Spanbroek 2023-11-08 13:12:10 +01:00
  • 4af85817bf Add streaming API for sponge Mark Spanbroek 2023-11-08 13:08:33 +01:00
  • 3cbd9a3a4c Fix merkle root of odd number of elements Mark Spanbroek 2023-11-09 10:20:10 +01:00
  • 9c1d18e1a2 Address review comments Mark Spanbroek 2023-11-13 11:34:19 +01:00
  • f5835d5fdc add domain separation for the sponge construction Balazs Komuves 2023-11-07 14:54:10 +01:00
  • 01aa256970 minor improvements Balazs Komuves 2023-11-07 14:21:37 +01:00
  • 929793b9ad add sponge construction Balazs Komuves 2023-11-07 11:58:15 +01:00
  • 172b426925 Address review comments Mark Spanbroek 2023-11-13 11:34:19 +01:00
  • 10133eec58 add domain separation for the sponge construction Balazs Komuves 2023-11-07 14:54:10 +01:00
  • 824daadd7e minor improvements Balazs Komuves 2023-11-07 14:21:37 +01:00
  • acbc92dac7 add sponge construction Balazs Komuves 2023-11-07 11:58:15 +01:00
  • 2040166c58 Fix merkle root of odd number of elements Mark Spanbroek 2023-11-09 10:20:10 +01:00
  • 573a77f14f Export conversion of field elements to bytes on main API Mark Spanbroek 2023-11-02 10:31:26 +01:00
  • dbe3d8a692 Rename marshal -> toBytes, unmarshal -> fromBytes Mark Spanbroek 2023-11-02 10:07:45 +01:00
  • 1c7c5d4ec4 Conversion of field elements into bytes Mark Spanbroek 2023-11-02 09:57:54 +01:00
  • a70fabfc93 Export conversion of field elements to bytes on main API Mark Spanbroek 2023-11-02 10:31:26 +01:00
  • 1bdb33db57 Rename marshal -> toBytes, unmarshal -> fromBytes Mark Spanbroek 2023-11-02 10:07:45 +01:00
  • b956425b5a Conversion of field elements into bytes Mark Spanbroek 2023-11-02 09:57:54 +01:00
  • 5e980dd816 Document conversion of bytes into field elements Mark Spanbroek 2023-11-02 09:19:14 +01:00
  • 03ed357ca4 Only support unmarshalling of little-endian bytes Mark Spanbroek 2023-11-02 09:00:03 +01:00
  • 10b4a3659a Pad big endian bytes with 0's to the right Mark Spanbroek 2023-11-02 08:54:04 +01:00
  • 996a1c8a7a Ensure that we don't have any side-effects Mark Spanbroek 2023-11-01 10:34:55 +01:00
  • 43c2aab913 move unmarshal into its own module called 'io' Mark Spanbroek 2023-10-31 13:40:07 +01:00
  • e19a08e6c3 Test merkleRoot() against reference Mark Spanbroek 2023-10-30 10:56:58 +01:00
  • 4668f09496 Determine merkle root of byte arrays Mark Spanbroek 2023-10-26 14:39:27 +02:00
  • eb56d5bba2 Document conversion of bytes into field elements Mark Spanbroek 2023-11-02 09:19:14 +01:00
  • 0344d9ab45 Only support unmarshalling of little-endian bytes Mark Spanbroek 2023-11-02 09:00:03 +01:00
  • 76d08b8054 Pad big endian bytes with 0's to the right Mark Spanbroek 2023-11-02 08:54:04 +01:00
  • 505a2a8f08 Ensure that we don't have any side-effects Mark Spanbroek 2023-11-01 10:34:55 +01:00
  • fa7c27a833 move unmarshal into its own module called 'io' Mark Spanbroek 2023-10-31 13:40:07 +01:00
  • 93013b286a Test merkleRoot() against reference Mark Spanbroek 2023-10-30 10:56:58 +01:00
  • 25878c88cf Determine merkle root of byte arrays Mark Spanbroek 2023-10-26 14:39:27 +02:00
  • 40eac466e2 Add installation instructions to Readme Mark Spanbroek 2023-10-25 10:26:32 +02:00
  • 331a68e4bd Add continous integration through Github actions Mark Spanbroek 2023-10-24 14:25:21 +02:00
  • 1d9d0d1f54 Perform string to array conversion at compiletime Mark Spanbroek 2023-10-24 14:21:37 +02:00
  • 0e91bea0f6 Convert under_scores to camelCase Mark Spanbroek 2023-10-24 14:16:54 +02:00
  • f73bce6aa1 convert visual inspection tests to unit tests Mark Spanbroek 2023-10-24 14:07:43 +02:00
  • b72c92639b Fix imports Mark Spanbroek 2023-10-24 13:57:47 +02:00