Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

Commit

Permalink
deps: added more precompiles by patching (#71)
Browse files Browse the repository at this point in the history
* imp: added more patches

* deps: removed unused patch

* imp: regenerated mock fixtures

* deps: added 'tiny-keccak' patch

* imp: regenerated some fixtures

* updated more fixtures

* fixture
  • Loading branch information
srdtrk authored Jul 18, 2024
1 parent 603c3e4 commit 897e0f7
Show file tree
Hide file tree
Showing 13 changed files with 345 additions and 343 deletions.
605 changes: 302 additions & 303 deletions Cargo.lock

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,8 @@ prost = { version = "0.12", default-features = false }
futures = "0.3"

[patch.crates-io]
sha2-v0-9-8 = { git = "https://github.com/sp1-patches/RustCrypto-hashes", package = "sha2", branch = "patch-v0.9.8" }
sha2-v0-10-8 = { git = "https://github.com/sp1-patches/RustCrypto-hashes", package = "sha2", branch = "patch-v0.10.8" }
ed25519-consensus = { git = "https://github.com/sp1-patches/ed25519-consensus", branch = "patch-v2.1.0" }
curve25519-dalek-ng = { git = "https://github.com/sp1-patches/curve25519-dalek-ng", branch = "patch-v4.1.1" }
tiny-keccak = { git = "https://github.com/sp1-patches/tiny-keccak", branch = "patch-v2.0.2" }
10 changes: 5 additions & 5 deletions contracts/fixtures/memberships_fixture.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"proofHeight": 2230264,
"trustedClientState": "0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000002207f800000000000000000000000000000000000000000000000000000000001275000000000000000000000000000000000000000000000000000000000000127500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000076d6f6368612d3400000000000000000000000000000000000000000000000000",
"trustedClientState": "0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000002207f800000000000000000000000000000000000000000000000000000000001baf8000000000000000000000000000000000000000000000000000000000001baf80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000076d6f6368612d3400000000000000000000000000000000000000000000000000",
"trustedConsensusState": "00000000000000000000000000000000000000000000000000000000668df173c7656d84561185b88f82507efaa6d578b46ebe5010c0d37de05109254d2f9ff1b655d16f9452ed96e4d7cf8143e927a1e0d9ff1e1d315f134f2ad6b798b35ce0",
"commitmentRoot": "c7656d84561185b88f82507efaa6d578b46ebe5010c0d37de05109254d2f9ff1",
"updateClientVkey": "0x00e43c9c112c22948738c5eb4bedbee71c9fd387ea7b2b18379d541c0f7768cc",
"membershipVkey": "0x00cca224de03cee0c7ba699fe9a7a9fbf931ba81e4055c33982d5c5f369e5fbd",
"ucAndMembershipVkey": "0x00aa1a5fc6344745ccf17a6470b402e949084755f05766cb00a0366b4fc05c9d",
"updateClientVkey": "0x00e85222aaad662bbf58fcff9ee11a6d26f95b9f051c1b4f25b783e99f690fe7",
"membershipVkey": "0x003c970b2e30a0a86d9d8917d019df0e23a9109ff07809a518361cf1f1abd179",
"ucAndMembershipVkey": "0x00b6506a0a593c7dc38856e85e68819306c26087ee8a2ad7cd7d829161e763cd",
"publicValues": "0x0000000000000000000000000000000000000000000000000000000000000020c7656d84561185b88f82507efaa6d578b46ebe5010c0d37de05109254d2f9ff100000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000023636c69656e74732f30372d74656e6465726d696e742d302f636c69656e745374617465000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b70a2b2f6962632e6c69676874636c69656e74732e74656e6465726d696e742e76312e436c69656e7453746174651287010a1174686574612d746573746e65742d3030311204080110031a040880840722040880c60a2a02082832003a0510b7e3c60842190a090801180120012a0100120c0a02000110211804200c300142190a090801180120012a0100120c0a02000110201801200130014a07757067726164654a107570677261646564494243537461746550015801000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000025636c69656e74732f30372d74656e6465726d696e742d3030312f636c69656e7453746174650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"proof": "0x02427f7ed4526c66427c5edaf0c503013f7a6ace0df44f0ce334a2231fdeb5a3195df4262848a336628f1a54b5c842e6ecbff3509e64f22d4e8bca23a0595d4601736c5b8f4bc88dfb6bed2533f52b7e992fdafec4cb06fbcd4990e89a65ba5307c8e29a3959b77f7b6a4b523e805c9826a7361ac2c2b07f94404bce8e3377730e8cc57ac818924882f5eb0cffd72431f3d7a7331fc8e63f020f30bb0b70939b040035c6c70d1cb315425d4ce9777c002718171747e867d65dbebc481d9f0e48171fdad145919b1b2d58305d2fcad07580a74972636eb9c291dca43077e86fdc23a1f67b3b160e3b7592257e8e6ab8627001be540863ba314c55065ba715eab725162a1db667a7e9b68a94f049e5f9695683380977ead66984aa6fa68ebd56001cd54e554f8ec58b0848a88927f758f4fe66edd851eeee657c6612d7b21dd572239b0940f95ec34a2566b1ccc6ea386194e39042bef1704d7f7fa65ae21cc6da1e396ed6a559af8f40fc6edb8314eebc733e90d7da6aded35615917a22e14bab2f3714713baa123135a52d8d3a719c5facebc445f2bb5be891ccdac01cb765251ae93ea6206811d9a8048dd0e60b4132ae3e1d7d8033f0133ff7132230033a922ccb37b1cd048f562545eda8a9a3128ae7277185ebb07e85d34209a526ce4b920cb6177b9467a742005c0ab23d342f89fbf89ee46edecf6378fa9c2abe09238e1f2a6e408d17726e00cab010aaeef9772be8c5956391ca2d8d14ff332c9165d5124034fc4f9bb3e4f44750d6ff76773577fa4cfc02a6f601f11d071cd0781095163c8fc869c5c93e315f20f7b4a382aa15ed98523657be24d0342d69199afbb71c8be6cc33d0cd8888313d0eea32c4ed1ce6f4d805f528021d4a3b0ee542273218f2b93dc8c7f5d49b7a37623f69b6f6771e70a0f6decea2d4634227ee8824b121e87dcdf605c6fbea1c133ab2cbcaac61e2c1be85fb91c890bd13acc4654b4a002c8295616ae6e8009a750262fd4900f7f245434f783a44ab7ffb7cb2035c062c20d0f81ac35909c083839ed6193285d73747adb48e9300414b3707bcda3348080f2249ebba1f05cb25bb2eb8264516fe0aad02b49969328214a313593b7b5618cd400007b8d8151548a49cc034511327ea8cbe1cd03cfc3238b87bbedcfcc12c6c9e25b68490e2d50dd6cbb287a175f9d067de8f4c2b2ba5a386deea158725",
"proof": "0x059dc6140e1633afdd916832043c08bd313166a9dc86b9f72e2a7501ef063bf50e607f8b114ee7548dc849c4c2532ff7c7f9f5391dc50a34067095a73431b2a72ff36838f087ff277dc5d82a62b677cdf7408bca2e8fda4c19be5f035717c0dc218435ece82292f98fc4e7fe835ef7c3c9a5ccb8c3fb7922d1439d5f22e0a17c1bb3dec0d13ec9b42566be76ec8cd3f17d61f91798a43e692067cd8fef7facfa2bd4eb7b8ac0f9b60cddad52144770d3ca63272d980730f9813ac0273df04bfc10ea4880955d997509565aec859ac29e4ae27d2a01be850ad6efcc0b028b8775057d609bb9f0353c3200e8edecaf2b41e370026aff73c74e9fd452f2c0c8ad092e7a9666c0e5fa13861d081833385e1f0889fab507c9898b61d5d744eaf6d5ef1f456db613f7eed98546856c4c7e1b798e7d1ffee4b3e16056b0939f6b8da3d42daccc0016d16dbf83cb74ed15b9f3cc110fe16990058f5f9e40e4c1cdf4ed8c1ff44a065ec83dfce5674aa9537c455d6d2798558fc5e776b6c703922644f5550e981eca973963c7ccb175d23a8321328969b7e2ae53ef35cd128af6dc03e762165ca436295fa57959ac6085db1b3cb8f0fb3e821b0e56c3d3906d7f40c8c4cc0abe9024988c98733def1734305a2e56929d3dd5a7dfb4886ade8c86c8fedb31102b2cd7b5f982577dbb9ec07bbe9a70c61514b4af7a36e79e3aff267b512302021861d7cd5ba61fc21ace6c1eb472786e7cca5abcae0365a0143979e8392d240e4ae4d254c98137d52e2b994aa9220dce748da70fb551f6f631d617324be53a1c4c3b7797e9d6d1e8c94b30d291f77f91a3886f291e99d3ac97abfbcae8d95416491bfce5531947c5d917b172f3005f9730619e3b60f87b93716659c61219f617433868d0c60563477118f484e9cc3b74b508382c45d122d067c97c90c3a9c80b80044fa1bef6dd95689b87ffcd525e822f3f4331b316354ba20949df9b31b42edd7a619a21c6155e2c919e88b68d885060aafec5c102df0a94f2074dea4992107fd7eb6fdcbe19bd60a9900013160fbc4339ec560c1aeb9ad93be725c269f20b041d1f4b3fec16291740b0259f38ab723506e0d042468fb045f9ba354db8a11282441e5563fc160490021dd4c8a8a2c27e74fa4b816c763689c19a61fce3041ae23bcbea69fee812e9427945f4942176dd1af5f026ac55d5f64461adaab082",
"kvPairs": "00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000023636c69656e74732f30372d74656e6465726d696e742d302f636c69656e745374617465000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b70a2b2f6962632e6c69676874636c69656e74732e74656e6465726d696e742e76312e436c69656e7453746174651287010a1174686574612d746573746e65742d3030311204080110031a040880840722040880c60a2a02082832003a0510b7e3c60842190a090801180120012a0100120c0a02000110211804200c300142190a090801180120012a0100120c0a02000110201801200130014a07757067726164654a107570677261646564494243537461746550015801000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000025636c69656e74732f30372d74656e6465726d696e742d3030312f636c69656e7453746174650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
}
8 changes: 4 additions & 4 deletions contracts/fixtures/mock_memberships_fixture.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"proofHeight": 2230264,
"trustedClientState": "0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000002207f800000000000000000000000000000000000000000000000000000000001275000000000000000000000000000000000000000000000000000000000000127500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000076d6f6368612d3400000000000000000000000000000000000000000000000000",
"trustedClientState": "0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000002207f800000000000000000000000000000000000000000000000000000000001baf8000000000000000000000000000000000000000000000000000000000001baf80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000076d6f6368612d3400000000000000000000000000000000000000000000000000",
"trustedConsensusState": "00000000000000000000000000000000000000000000000000000000668df173c7656d84561185b88f82507efaa6d578b46ebe5010c0d37de05109254d2f9ff1b655d16f9452ed96e4d7cf8143e927a1e0d9ff1e1d315f134f2ad6b798b35ce0",
"commitmentRoot": "c7656d84561185b88f82507efaa6d578b46ebe5010c0d37de05109254d2f9ff1",
"updateClientVkey": "0x00e43c9c112c22948738c5eb4bedbee71c9fd387ea7b2b18379d541c0f7768cc",
"membershipVkey": "0x00cca224de03cee0c7ba699fe9a7a9fbf931ba81e4055c33982d5c5f369e5fbd",
"ucAndMembershipVkey": "0x00aa1a5fc6344745ccf17a6470b402e949084755f05766cb00a0366b4fc05c9d",
"updateClientVkey": "0x00e85222aaad662bbf58fcff9ee11a6d26f95b9f051c1b4f25b783e99f690fe7",
"membershipVkey": "0x003c970b2e30a0a86d9d8917d019df0e23a9109ff07809a518361cf1f1abd179",
"ucAndMembershipVkey": "0x00b6506a0a593c7dc38856e85e68819306c26087ee8a2ad7cd7d829161e763cd",
"publicValues": "0x0000000000000000000000000000000000000000000000000000000000000020c7656d84561185b88f82507efaa6d578b46ebe5010c0d37de05109254d2f9ff100000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000023636c69656e74732f30372d74656e6465726d696e742d302f636c69656e745374617465000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b70a2b2f6962632e6c69676874636c69656e74732e74656e6465726d696e742e76312e436c69656e7453746174651287010a1174686574612d746573746e65742d3030311204080110031a040880840722040880c60a2a02082832003a0510b7e3c60842190a090801180120012a0100120c0a02000110211804200c300142190a090801180120012a0100120c0a02000110201801200130014a07757067726164654a107570677261646564494243537461746550015801000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000025636c69656e74732f30372d74656e6465726d696e742d3030312f636c69656e7453746174650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"proof": "0x",
"kvPairs": "00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000023636c69656e74732f30372d74656e6465726d696e742d302f636c69656e745374617465000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b70a2b2f6962632e6c69676874636c69656e74732e74656e6465726d696e742e76312e436c69656e7453746174651287010a1174686574612d746573746e65742d3030311204080110031a040880840722040880c60a2a02082832003a0510b7e3c60842190a090801180120012a0100120c0a02000110211804200c300142190a090801180120012a0100120c0a02000110201801200130014a07757067726164654a107570677261646564494243537461746550015801000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000025636c69656e74732f30372d74656e6465726d696e742d3030312f636c69656e7453746174650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
Expand Down
Loading

0 comments on commit 897e0f7

Please sign in to comment.