Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: kadena workspace #179

Merged
merged 15 commits into from
Aug 22, 2024
Merged

feat: kadena workspace #179

merged 15 commits into from
Aug 22, 2024

Conversation

tchataigner
Copy link
Contributor

@tchataigner tchataigner commented Aug 22, 2024

This PR contians the setup of the Kadena Light Client. The PR is based of @storojs72 branch block-header-hashing. I just updated the CI files, added the MdBook, added our xclippy conf and changed the Cargo.tomls versions.

Related issues

Closes #148
Closes #149
Closes #150

Copy link
Member

@storojs72 storojs72 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

I think that another useful program at this stage would be just SHA-512 hashing of some arbitrary input using sha2 patched dependency forked to our organisation from SP1. I suspect that by design the SHA512 precompile would still be the same as in SHA256 from SP1 - e.g. two syscalls:

extern "C" {
    fn syscall_sha512_extend(w: *mut u32);
    fn syscall_sha512_compress(w: *mut u32, state: *mut u32);
}

So far we can have them as out-of-circuit (out-of-sphinx) implementations to match the test vectors and eventually replace with prepared sys calls

@tchataigner
Copy link
Contributor Author

LGTM!

I think that another useful program at this stage would be just SHA-512 hashing of some arbitrary input using sha2 patched dependency forked to our organisation from SP1. I suspect that by design the SHA512 precompile would still be the same as in SHA256 from SP1 - e.g. two syscalls:

extern "C" {
    fn syscall_sha512_extend(w: *mut u32);
    fn syscall_sha512_compress(w: *mut u32, state: *mut u32);
}

So far we can have them as out-of-circuit (out-of-sphinx) implementations to match the test vectors and eventually replace with prepared sys calls

I think this should be an issue created on our bls12_381 repo

@tchataigner tchataigner merged commit b922abe into dev Aug 22, 2024
6 of 7 checks passed
@tchataigner tchataigner deleted the feature/kadena-workspace branch August 22, 2024 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants