├── .github └── workflows │ └── haskell.yml ├── .gitignore ├── .haskell-ci ├── CODE-OF-CONDUCT.md ├── CONTRIBUTING.rst ├── LICENSE ├── README.md ├── Setup.hs ├── benchs └── Bench.hs ├── cabal.project ├── cardano-crypto.cabal ├── cbits ├── crypton_pbkdf2.h ├── crypton_sha512.h ├── ed25519 │ ├── curve25519-donna-32bit.h │ ├── curve25519-donna-64bit.h │ ├── curve25519-donna-helpers.h │ ├── ed25519-donna-32bit-sse2.h │ ├── ed25519-donna-32bit-tables.h │ ├── ed25519-donna-64bit-tables.h │ ├── ed25519-donna-64bit-x86-32bit.h │ ├── ed25519-donna-64bit-x86.h │ ├── ed25519-donna-basepoint-table.h │ ├── ed25519-donna-batchverify.h │ ├── ed25519-donna-impl-base.h │ ├── ed25519-donna-portable-identify.h │ ├── ed25519-donna-portable.h │ ├── ed25519-donna.h │ ├── ed25519-hash.h │ ├── ed25519-randombytes.h │ ├── ed25519.c │ ├── ed25519.h │ ├── modm-donna-32bit.h │ └── modm-donna-64bit.h ├── encrypted_sign.c └── hmac.h ├── src ├── Cardano │ ├── Crypto │ │ ├── Encoding │ │ │ ├── BIP39.hs │ │ │ └── Seed.hs │ │ ├── Wallet.hs │ │ └── Wallet │ │ │ ├── Encrypted.hs │ │ │ ├── Pure.hs │ │ │ └── Types.hs │ └── Internal │ │ └── Compat.hs └── Crypto │ ├── ECC │ ├── Ed25519BIP32.hs │ └── Ed25519Donna.hs │ ├── Encoding │ ├── BIP39.hs │ └── BIP39 │ │ ├── Dictionary.hs │ │ └── English.hs │ └── Math │ ├── Bits.hs │ ├── Bytes.hs │ ├── Edwards25519.hs │ └── NatMath.hs ├── stack.yaml ├── test ├── GoldenTest.hs ├── Spec.hs ├── Test │ ├── Cardano.hs │ ├── Cardano │ │ ├── Crypto.hs │ │ └── Crypto │ │ │ ├── Encoding.hs │ │ │ └── Encoding │ │ │ └── Seed.hs │ ├── Crypto.hs │ ├── Crypto │ │ ├── Encoding.hs │ │ └── Encoding │ │ │ └── BIP39.hs │ └── Orphans.hs └── Utils.hs └── tests └── goldens ├── cardano └── crypto │ ├── scramble128 │ ├── scramble160 │ ├── scramble192 │ ├── scramble224 │ ├── signature-ed25519 │ └── wallet │ ├── BIP39-128 │ ├── BIP39-160 │ ├── BIP39-192 │ ├── BIP39-224 │ └── BIP39-256 └── crypto └── encoding ├── BIP39-128 ├── BIP39-192 └── BIP39-256 /.github/workflows/haskell.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/.github/workflows/haskell.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/.gitignore -------------------------------------------------------------------------------- /.haskell-ci: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/.haskell-ci -------------------------------------------------------------------------------- /CODE-OF-CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/CODE-OF-CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/CONTRIBUTING.rst -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/README.md -------------------------------------------------------------------------------- /Setup.hs: -------------------------------------------------------------------------------- 1 | import Distribution.Simple 2 | main = defaultMain 3 | -------------------------------------------------------------------------------- /benchs/Bench.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/benchs/Bench.hs -------------------------------------------------------------------------------- /cabal.project: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/cabal.project -------------------------------------------------------------------------------- /cardano-crypto.cabal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/cardano-crypto.cabal -------------------------------------------------------------------------------- /cbits/crypton_pbkdf2.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/cbits/crypton_pbkdf2.h -------------------------------------------------------------------------------- /cbits/crypton_sha512.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/cbits/crypton_sha512.h -------------------------------------------------------------------------------- /cbits/ed25519/curve25519-donna-32bit.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/cbits/ed25519/curve25519-donna-32bit.h -------------------------------------------------------------------------------- /cbits/ed25519/curve25519-donna-64bit.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/cbits/ed25519/curve25519-donna-64bit.h -------------------------------------------------------------------------------- /cbits/ed25519/curve25519-donna-helpers.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/cbits/ed25519/curve25519-donna-helpers.h -------------------------------------------------------------------------------- /cbits/ed25519/ed25519-donna-32bit-sse2.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/cbits/ed25519/ed25519-donna-32bit-sse2.h -------------------------------------------------------------------------------- /cbits/ed25519/ed25519-donna-32bit-tables.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/cbits/ed25519/ed25519-donna-32bit-tables.h -------------------------------------------------------------------------------- /cbits/ed25519/ed25519-donna-64bit-tables.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/cbits/ed25519/ed25519-donna-64bit-tables.h -------------------------------------------------------------------------------- /cbits/ed25519/ed25519-donna-64bit-x86-32bit.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/cbits/ed25519/ed25519-donna-64bit-x86-32bit.h -------------------------------------------------------------------------------- /cbits/ed25519/ed25519-donna-64bit-x86.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/cbits/ed25519/ed25519-donna-64bit-x86.h -------------------------------------------------------------------------------- /cbits/ed25519/ed25519-donna-basepoint-table.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/cbits/ed25519/ed25519-donna-basepoint-table.h -------------------------------------------------------------------------------- /cbits/ed25519/ed25519-donna-batchverify.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/cbits/ed25519/ed25519-donna-batchverify.h -------------------------------------------------------------------------------- /cbits/ed25519/ed25519-donna-impl-base.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/cbits/ed25519/ed25519-donna-impl-base.h -------------------------------------------------------------------------------- /cbits/ed25519/ed25519-donna-portable-identify.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/cbits/ed25519/ed25519-donna-portable-identify.h -------------------------------------------------------------------------------- /cbits/ed25519/ed25519-donna-portable.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/cbits/ed25519/ed25519-donna-portable.h -------------------------------------------------------------------------------- /cbits/ed25519/ed25519-donna.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/cbits/ed25519/ed25519-donna.h -------------------------------------------------------------------------------- /cbits/ed25519/ed25519-hash.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/cbits/ed25519/ed25519-hash.h -------------------------------------------------------------------------------- /cbits/ed25519/ed25519-randombytes.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/cbits/ed25519/ed25519-randombytes.h -------------------------------------------------------------------------------- /cbits/ed25519/ed25519.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/cbits/ed25519/ed25519.c -------------------------------------------------------------------------------- /cbits/ed25519/ed25519.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/cbits/ed25519/ed25519.h -------------------------------------------------------------------------------- /cbits/ed25519/modm-donna-32bit.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/cbits/ed25519/modm-donna-32bit.h -------------------------------------------------------------------------------- /cbits/ed25519/modm-donna-64bit.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/cbits/ed25519/modm-donna-64bit.h -------------------------------------------------------------------------------- /cbits/encrypted_sign.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/cbits/encrypted_sign.c -------------------------------------------------------------------------------- /cbits/hmac.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/cbits/hmac.h -------------------------------------------------------------------------------- /src/Cardano/Crypto/Encoding/BIP39.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/src/Cardano/Crypto/Encoding/BIP39.hs -------------------------------------------------------------------------------- /src/Cardano/Crypto/Encoding/Seed.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/src/Cardano/Crypto/Encoding/Seed.hs -------------------------------------------------------------------------------- /src/Cardano/Crypto/Wallet.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/src/Cardano/Crypto/Wallet.hs -------------------------------------------------------------------------------- /src/Cardano/Crypto/Wallet/Encrypted.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/src/Cardano/Crypto/Wallet/Encrypted.hs -------------------------------------------------------------------------------- /src/Cardano/Crypto/Wallet/Pure.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/src/Cardano/Crypto/Wallet/Pure.hs -------------------------------------------------------------------------------- /src/Cardano/Crypto/Wallet/Types.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/src/Cardano/Crypto/Wallet/Types.hs -------------------------------------------------------------------------------- /src/Cardano/Internal/Compat.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/src/Cardano/Internal/Compat.hs -------------------------------------------------------------------------------- /src/Crypto/ECC/Ed25519BIP32.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/src/Crypto/ECC/Ed25519BIP32.hs -------------------------------------------------------------------------------- /src/Crypto/ECC/Ed25519Donna.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/src/Crypto/ECC/Ed25519Donna.hs -------------------------------------------------------------------------------- /src/Crypto/Encoding/BIP39.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/src/Crypto/Encoding/BIP39.hs -------------------------------------------------------------------------------- /src/Crypto/Encoding/BIP39/Dictionary.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/src/Crypto/Encoding/BIP39/Dictionary.hs -------------------------------------------------------------------------------- /src/Crypto/Encoding/BIP39/English.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/src/Crypto/Encoding/BIP39/English.hs -------------------------------------------------------------------------------- /src/Crypto/Math/Bits.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/src/Crypto/Math/Bits.hs -------------------------------------------------------------------------------- /src/Crypto/Math/Bytes.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/src/Crypto/Math/Bytes.hs -------------------------------------------------------------------------------- /src/Crypto/Math/Edwards25519.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/src/Crypto/Math/Edwards25519.hs -------------------------------------------------------------------------------- /src/Crypto/Math/NatMath.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/src/Crypto/Math/NatMath.hs -------------------------------------------------------------------------------- /stack.yaml: -------------------------------------------------------------------------------- 1 | resolver: lts-13.24 2 | 3 | packages: 4 | - . 5 | -------------------------------------------------------------------------------- /test/GoldenTest.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/test/GoldenTest.hs -------------------------------------------------------------------------------- /test/Spec.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/test/Spec.hs -------------------------------------------------------------------------------- /test/Test/Cardano.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/test/Test/Cardano.hs -------------------------------------------------------------------------------- /test/Test/Cardano/Crypto.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/test/Test/Cardano/Crypto.hs -------------------------------------------------------------------------------- /test/Test/Cardano/Crypto/Encoding.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/test/Test/Cardano/Crypto/Encoding.hs -------------------------------------------------------------------------------- /test/Test/Cardano/Crypto/Encoding/Seed.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/test/Test/Cardano/Crypto/Encoding/Seed.hs -------------------------------------------------------------------------------- /test/Test/Crypto.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/test/Test/Crypto.hs -------------------------------------------------------------------------------- /test/Test/Crypto/Encoding.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/test/Test/Crypto/Encoding.hs -------------------------------------------------------------------------------- /test/Test/Crypto/Encoding/BIP39.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/test/Test/Crypto/Encoding/BIP39.hs -------------------------------------------------------------------------------- /test/Test/Orphans.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/test/Test/Orphans.hs -------------------------------------------------------------------------------- /test/Utils.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/test/Utils.hs -------------------------------------------------------------------------------- /tests/goldens/cardano/crypto/scramble128: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/tests/goldens/cardano/crypto/scramble128 -------------------------------------------------------------------------------- /tests/goldens/cardano/crypto/scramble160: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/tests/goldens/cardano/crypto/scramble160 -------------------------------------------------------------------------------- /tests/goldens/cardano/crypto/scramble192: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/tests/goldens/cardano/crypto/scramble192 -------------------------------------------------------------------------------- /tests/goldens/cardano/crypto/scramble224: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/tests/goldens/cardano/crypto/scramble224 -------------------------------------------------------------------------------- /tests/goldens/cardano/crypto/signature-ed25519: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/tests/goldens/cardano/crypto/signature-ed25519 -------------------------------------------------------------------------------- /tests/goldens/cardano/crypto/wallet/BIP39-128: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/tests/goldens/cardano/crypto/wallet/BIP39-128 -------------------------------------------------------------------------------- /tests/goldens/cardano/crypto/wallet/BIP39-160: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/tests/goldens/cardano/crypto/wallet/BIP39-160 -------------------------------------------------------------------------------- /tests/goldens/cardano/crypto/wallet/BIP39-192: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/tests/goldens/cardano/crypto/wallet/BIP39-192 -------------------------------------------------------------------------------- /tests/goldens/cardano/crypto/wallet/BIP39-224: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/tests/goldens/cardano/crypto/wallet/BIP39-224 -------------------------------------------------------------------------------- /tests/goldens/cardano/crypto/wallet/BIP39-256: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/tests/goldens/cardano/crypto/wallet/BIP39-256 -------------------------------------------------------------------------------- /tests/goldens/crypto/encoding/BIP39-128: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/tests/goldens/crypto/encoding/BIP39-128 -------------------------------------------------------------------------------- /tests/goldens/crypto/encoding/BIP39-192: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/tests/goldens/crypto/encoding/BIP39-192 -------------------------------------------------------------------------------- /tests/goldens/crypto/encoding/BIP39-256: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-crypto/HEAD/tests/goldens/crypto/encoding/BIP39-256 --------------------------------------------------------------------------------