OS
Your OS:
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Cable version :
cabal-install version 3.6.2.0
compiled using version 3.6.2.0 of the Cabal library
ghc version:
The Glorious Glasgow Haskell Compilation System, version 8.10.7
Additional context
I tried these few steps also
1)cabal clean
2)cable build all
3)sudo apt-get install libsodium-dev
4)sudo apt install libscrypt-dev
Problem Report
Installing regex-pcre-builtin-0.95.2.3.8.44 (lib)
Completed regex-pcre-builtin-0.95.2.3.8.44 (lib)
Installing Cabal-syntax-3.10.1.0 (lib)
Completed Cabal-syntax-3.10.1.0 (lib)
Failed to build scrypt-0.5.0. The failure occurred during the configure step.
Build log (
/home/ubuntu/.cabal/logs/ghc-8.10.7/scrypt-0.5.0-9dc7f5056f17df13813f95e91bb667ceed7dc3e60a8b91da16ab03a3c4c8a06b.log
):
Configuring library for scrypt-0.5.0..
cabal-3.6.2.0: Missing dependency on a foreign library:
-
Missing (or bad) header file: crypto_scrypt.h
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.If the
library file does exist, it may contain errors that are caught by the C
compiler at the preprocessing stage. In this case you can re-run configure
with the verbosity flag -v3 to see the error messages.
If the header file does exist, it may contain errors that are caught by the C
compiler at the preprocessing stage. In this case you can re-run configure
with the verbosity flag -v3 to see the error messages.
cabal: Failed to build scrypt-0.5.0 (which is required by test:unit from
cardano-wallet-2023.7.18, exe:mock-token-metadata-server from
cardano-wallet-2023.7.18 and others). See the build log above for details.
Hi, I'm a novice in smart contract development and am just doing a little research to gain a high-level overview. So I'd like to compare it in terms of complexity to other (more familiar to me) software artifacts.
General (non-cardano) smart contract questions
-
Generally speaking, how would you compare a more or less "typical" smart contract to other software artifacts like, for example: shell scripts, enterprise software backend, microservices, or an API?
-
Are typical concepts from software engineering (or imperative programming) like polymorphism, overloading, inheritance or design patterns used or applicable in smart contracts (in general)?
-
Frameworks are complex pieces of mainstream software; any way to compare learning them with learning smart contract development?
-
How complex can a smart contract be, comparing it with other software artifacts or use cases.
Cardano specific question
-
Moving to FP, are concepts like typeclasses, ADTs, lambdas, higher-order functions, monads, or effect systems used in Plutus?
Finally, how does FP fit (if there's a fit) in other smart-contract languages/blockchains?
I guess some things cannot be "simply compared", but maybe I can get a clearer idea from other more traditional and familiar stuff I know.
Thank you!!
What are the best API services for creating wallets with node.js?
Blockfrost didn't seem to have create wallet function