Scrap hex and rely on bech32 for converting to hex #291
+19
−73
Garnix CI / check ghc810-x86_64-unknown-linux-musl:cardano-addresses:test:unit [x86_64-linux]
succeeded
Jan 13, 2025 in 3m 55s
Run results
Build succeeded
Details
Last 100 lines of logs:
Golden and Actual output hasn't changed
should inspect correctly [✔]
Golden and Actual output hasn't changed
["churn","shaft","spoon","second","erode","useless","thrive","burst","group","seed","element","sign","scrub","buffalo","jelly","grace","neck","useless"]
should generate correct addresses [✔]
Golden and Actual output hasn't changed
should inspect correctly [✔]
Golden and Actual output hasn't changed
["draft","ability","female","child","jump","maid","roof","hurt","below","live","topple","paper","exclude","ordinary","coach","churn","sunset","emerge","blame","ketchup","much"]
should generate correct addresses [✔]
Golden and Actual output hasn't changed
should inspect correctly [✔]
Golden and Actual output hasn't changed
["excess","behave","track","soul","table","wear","ocean","cash","stay","nature","item","turtle","palm","soccer","lunch","horror","start","stumble","month","panic","right","must","lock","dress"]
should generate correct addresses [✔]
Golden and Actual output hasn't changed
should inspect correctly [✔]
Golden and Actual output hasn't changed
Cardano.Codec.Cbor
decodeAddress <-> encodeAddress roundtrip
DerivationPath roundtrip [✔]
+++ OK, passed 100 tests.
Golden Tests for Byron Addresses w/ random scheme (Mainnet)
decodeDerivationPath - mainnet - initial account [✔]
decodeDerivationPath - mainnet - another account [✔]
Golden Tests for Byron Addresses w/ random scheme (Testnet)
decodeDerivationPath - testnet - initial account [✔]
decodeDerivationPath - testnet - another account [✔]
Cardano.Mnemonic
(9) entropyToMnemonic . mnemonicToEntropy == identity [✔]
+++ OK, passed 100 tests.
(12) entropyToMnemonic . mnemonicToEntropy == identity [✔]
+++ OK, passed 100 tests.
(15) entropyToMnemonic . mnemonicToEntropy == identity [✔]
+++ OK, passed 100 tests.
(18) entropyToMnemonic . mnemonicToEntropy == identity [✔]
+++ OK, passed 100 tests.
(21) entropyToMnemonic . mnemonicToEntropy == identity [✔]
+++ OK, passed 100 tests.
(24) entropyToMnemonic . mnemonicToEntropy == identity [✔]
+++ OK, passed 100 tests.
(9) mkMnemonic . mnemonicToText == pure [✔]
+++ OK, passed 100 tests.
(12) mkMnemonic . mnemonicToText == pure [✔]
+++ OK, passed 100 tests.
(15) mkMnemonic . mnemonicToText == pure [✔]
+++ OK, passed 100 tests.
(18) mkMnemonic . mnemonicToText == pure [✔]
+++ OK, passed 100 tests.
(21) mkMnemonic . mnemonicToText == pure [✔]
+++ OK, passed 100 tests.
(24) mkMnemonic . mnemonicToText == pure [✔]
+++ OK, passed 100 tests.
MkSomeMnemonic
early error reported first (Invalid Entropy) [✔]
early error reported first (Non-English Word) [✔]
early error reported first (Wrong number of words - 1) [✔]
early error reported first (Wrong number of words - 2) [✔]
early error reported first (Error not in first constructor) [✔]
early error reported first (Error not in first constructor) [✔]
successfully parse 15 words in [15,18,21] [✔]
successfully parse 15 words in [12,15,18] [✔]
successfully parse 15 words in [9,12,15] [✔]
golden tests
No empty mnemonic [✔]
No 1 word mnemonic [✔]
No too long fake mnemonic [✔]
No empty entropy [✔]
No too short entropy [✔]
No too long entropy [✔]
Can make entropy [✔]
Can generate 96 bits entropy [✔]
Can generate 128 bits entropy [✔]
Can generate 160 bits entropy [✔]
Can generate 192 bits entropy [✔]
Can generate 224 bits entropy [✔]
Can generate 256 bits entropy [✔]
Mnemonic to Text [✔]
Mnemonic from Text [✔]
Mnemonic to Entropy [✔]
Mnemonic from Api is invalid [✔]
Mnemonic 2nd factor from Api is invalid [✔]
15 long mnemonics not valid for mkMnemonic @12 [✔]
15 long mnemonics not valid for mkMnemonic @24 [✔]
Non-English mnemonics don't work [✔]
Codec.Binary.Encoding
detectEncoding
ed25519_sk1l25926aaaf7ty55g99r285wptc7nqrzager5jghurqdswklj4pvszzp8qg is bech32 [✔]
Data.Word7
Word7 roundtrips
toWord7 . toWord8 - Word8 [✔]
+++ OK, passed 100 tests.
toWord7s . toNatural - Natural [✔]
+++ OK, passed 100 tests.
encode / decode roundtrip
{get,put}VariableLengthNat [✔]
+++ OK, passed 100 tests.
Finished in 13.6897 seconds
296 examples, 0 failures
Loading