Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
3281: Walletid e2e testing r=piotr-iohk a=piotr-iohk - [x] I have added some e2e tests for walletid checking cardano-wallet and cardano-addresses comply ### Comments <!-- Additional comments, links, or screenshots to attach, if any. --> ### Issue Number adp-1621 Co-authored-by: Piotr Stachyra <piotr.stachyra@iohk.io>
- Loading branch information
Showing
5 changed files
with
196 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
## | ||
# cardano-address cmd helper wrapper | ||
# | ||
class CardanoAddresses | ||
## | ||
# @param mnemonics | ||
# @param type = Byron | Icarus | Shelley | Shared | ||
def prv_key_from_recovery_phrase(mnemonics, type) | ||
cmd(%(echo #{mnemonics.join(' ')}| cardano-address key from-recovery-phrase #{type})).gsub("\n", '') | ||
end | ||
|
||
def key_public(key, with_chain_code = true) | ||
cmd(%(echo #{key}| cardano-address key public #{with_chain_code ? "--with-chain-code" : "--without-chain-code"})).gsub("\n", '') | ||
end | ||
|
||
def key_child(key, derivation_path) | ||
cmd(%(echo #{key}| cardano-address key child #{derivation_path})).gsub("\n", '') | ||
end | ||
|
||
def key_walletid(key, templates = '') | ||
cmd(%(echo #{key}| cardano-address key walletid #{templates})).gsub("\n", '') | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters