Skip to content

Conversation

@SebastienGllmt
Copy link
Contributor

Cardano Wallet has its own multisig script style independent of CIP 29. This PR is meant to add support for this cardano-wallet specific DSL

rvcas and others added 2 commits October 13, 2021 02:18
* feat: add an empty function to confirm type signature [ch478]

* feat: map the data types to rust types [ch478]

* fix: we only need ScriptTemplate [ch478]

* test: add native_scripts_json_util

* feat: start parsing some json into ScriptTemplate

* fix: move some functions around and ditch intermediary structure [ch478]

* feat: make an address from String [ch478]

* feat: use Bip32PublicKey [ch478]

* feat: make a helper to recurse over the template [ch478]

* feat: handle all and active_from [ch478]

* feat: handle any and active_until [ch478]

* fix: remove ScriptValidation enum [ch478]

* fix: rename value to template

* feat: implement cardano wallet style scripts

  * removes the temp enum
  * fixes the return type to be NativeScript
  * implements the some case
  * pass in an extra param for self

* test: slightly better test

* feat: pass cosigners HashMap by reference

* feat: document the function and some param info

* fix: did not need to map error

* chore: explain what self_address is a bit more [ch478]

* chore: commit flow doc [ch478]

* Flesh out unit test + fix bugs

Co-authored-by: rooooooooob <[email protected]>
(cherry picked from commit db03e27)
@vsubhuman vsubhuman self-requested a review October 12, 2021 17:29
@vsubhuman vsubhuman added this to the 9.2.0 milestone Oct 19, 2021
@vsubhuman vsubhuman merged commit 134635c into master Nov 2, 2021
@vsubhuman vsubhuman deleted the support-cardano-wallet-style-script-creation branch November 2, 2021 22:44
@vsubhuman vsubhuman mentioned this pull request Feb 6, 2022
40 tasks
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

Successfully merging this pull request may close these issues.

5 participants