-
Notifications
You must be signed in to change notification settings - Fork 214
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
Prepare room for Shelley addresses #1669
Conversation
31d42c3
to
3ccb18f
Compare
eeeabfc
to
71433ba
Compare
f1dc781
to
897613f
Compare
Better reflect what this module really is and what it really targets. Makes room for the iminent shelley address support.
…integration tests
897613f
to
a767ac2
Compare
@@ -344,7 +344,7 @@ import qualified Cardano.BM.Data.BackendKind as CM | |||
import qualified Cardano.Crypto.Wallet as CC | |||
import qualified Cardano.Wallet.Api.Types as API | |||
import qualified Cardano.Wallet.Primitive.AddressDerivation.Icarus as Icarus | |||
import qualified Cardano.Wallet.Primitive.AddressDerivation.Shelley as Shelley | |||
import qualified Cardano.Wallet.Primitive.AddressDerivation.Jormungandr as Jormungandr |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
import qualified Cardano.Wallet.Primitive.AddressDerivation.Byron as Rnd | ||
import qualified Cardano.Wallet.Primitive.AddressDerivation.Icarus as Ica | ||
import qualified Cardano.Wallet.Primitive.AddressDerivation.Shelley as Seq | ||
import qualified Cardano.Wallet.Primitive.AddressDerivation.Byron as Byron |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good to have proper/precise naming finally
putByteString . blake2b224 $ paymentK | ||
where | ||
enterprise = 96 | ||
networkId = 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see you adopted already what is going to be valid in cardano-ledger-spec in a while. 0
network id for testnet 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to what was last communicated indeed, although it's probably not yet merged on their side.
putByteString . blake2b224 $ stakingK | ||
where | ||
base = 0 | ||
networkId = 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
network id =1 is only one possible mainnet, it can be form 1 to 15 (if I understand it well). we are ok now with fixed one value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe so. We have some time to see the other mainnets coming, I hope 😶
:<|> putWallet shelley mkShelleyWallet | ||
:<|> putWalletPassphrase shelley | ||
:<|> getUTxOsStatistics shelley | ||
wallets = deleteWallet jormungandr |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now it read much better !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like Shelley got its proper place in the code, other naming bits that were ambiguous (like Rnd but it should be Byron, Shelley that it should be Jormungandr) were addressed. Hope to see one day, the more extensive usage of cardano-addresses style implementations ;-)
325abcf
to
fbbae4d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
Buildkite hydra-eval failed, but the new ci/hydra-eval succeeded. Which one should I trust 😱 |
bors r+ |
1 similar comment
bors r+ |
1669: Prepare room for Shelley addresses r=KtorZ a=KtorZ # Issue Number <!-- Put here a reference to the issue this PR relates to and which requirements it tackles --> #1672 # Overview <!-- Detail in a few bullet points the work accomplished in this PR --> - f98b904 📍 **cleanup redundant constraints from the wallet engine** - 9524ccc 📍 **remove some hard-coded 'ShelleyKey' in favor of more flexible constraints** - c8bada8 📍 **rename AddressDerivation.Shelley & ShelleyKey to Jormungandr** Better reflect what this module really is and what it really targets. Makes room for the iminent shelley address support. - 5bd26c6 📍 **Regenerate nix** - 2c27166 📍 **add partial implementation for Shelley keys, for type-checking** - a767ac2 📍 **replace occurences of 'ShelleyKey' with 'JormungandrKey' in relevant integration tests** - 9d5c3fd 📍 **implement bits about fingerprints for ShelleyKey** # Comments <!-- Additional comments or screenshots to attach if any --> Based on #1664 <!-- Don't forget to: ✓ Self-review your changes to make sure nothing unexpected slipped through ✓ Assign yourself to the PR ✓ Assign one or several reviewer(s) ✓ Once created, link this PR to its corresponding ticket ✓ Assign the PR to a corresponding milestone ✓ Acknowledge any changes required to the Wiki --> Co-authored-by: KtorZ <matthias.benkort@gmail.com> Co-authored-by: IOHK <devops+stack-project@iohk.io>
Build failed |
Oops, I broke the Hydra build. That's why bors is not working. The fix is here #1661. I will merge this now since it passed everything. |
Issue Number
#1672
Overview
f98b904
📍 cleanup redundant constraints from the wallet engine
9524ccc
📍 remove some hard-coded 'ShelleyKey' in favor of more flexible constraints
c8bada8
📍 rename AddressDerivation.Shelley & ShelleyKey to Jormungandr
Better reflect what this module really is and what it really targets. Makes room for the iminent shelley address support.
5bd26c6
📍 Regenerate nix
2c27166
📍 add partial implementation for Shelley keys, for type-checking
a767ac2
📍 replace occurences of 'ShelleyKey' with 'JormungandrKey' in relevant integration tests
9d5c3fd
📍 implement bits about fingerprints for ShelleyKey
Comments
Based on #1664