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

Helper functions for the bridge #10

Open
3 tasks
ekrembal opened this issue Oct 7, 2024 · 0 comments
Open
3 tasks

Helper functions for the bridge #10

ekrembal opened this issue Oct 7, 2024 · 0 comments

Comments

@ekrembal
Copy link
Member

ekrembal commented Oct 7, 2024

  • winternitz_sig_check<D, N>(PublicKey[N], XOnlyPublicKey) -> ScriptBuf: This should verify the winternitz signature, and do: xonly_pk OP_CHECKSIG at the end.
  • double_winternitz_sig_check<D, N>(PublicKey[2; N], XOnlyPublicKey) -> ScriptBuf: This should verify the winternitz signature for both PublicKey and verify that signed messages are same, and do: xonly_pk OP_CHECKSIG at the end.
  • bitvm(D, N, winternitz_pks: PublicKey[], prover_xonly_pk: XOnlyPublicKey, nofn_xonly_pk XOnlyPublicKey, public_inputs_winternitz_pks: (PublicKey[], Digest)[] ) -> (ScriptHash[], ScriptHash[]): This should return the array of assertTx script hashes and disprove script hases, where public_inputs_winternitz_pks are hashed and the resulting hash is the public input of the groth16 proof. Prover's xonly pubkey and N-of-N xonly pubkey is given.

Afther these we can implement disprove txs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant