Civil Law And Distributed Legal Ledger Systems In Morocco .
Moroccan statutory framework for distributed legal ledgers
A. Law No. 53-05 on electronic exchange of legal data
Law No. 53-05, promulgated on 30 November 2007, establishes a framework for electronic legal documents, electronic signatures, cryptography, and electronic certification. It also introduced provisions into the Moroccan Code of Obligations and Contracts concerning electronic writing and signatures.
anrt.ma+1
For distributed ledgers, its relevance is that an entry stored on a blockchain may help demonstrate that particular data existed at a certain time or has not been changed since it was recorded. But a blockchain entry is not automatically equivalent to a legally authenticated signature, a notarised deed, or an official property register.
The legal assessment must still consider:
Who created or authorised the entry.
Whether the parties intended to be legally bound.
Whether the record has been altered or manipulated before entering the ledger.
Whether the ledger and its associated records can be reliably authenticated.
Whether the transaction requires a special form, registration, or official approval.
B. Law No. 43-20 on trust services for electronic transactions
Morocco's Law No. 43-20 modernises the framework for electronic trust services. It is relevant to electronic signatures, seals, timestamps, and certification services used to establish identity and document integrity.
Digital wallet e-Gov+1
A permissioned distributed ledger used by banks, businesses, public institutions, or notaries may combine blockchain records with these trust services. Such integration can improve accountability, but the technology does not displace the legal requirements applicable to the underlying transaction.
C. The Code of Obligations and Contracts
The Moroccan Code of Obligations and Contracts governs the formation and performance of contracts, consent, obligations, and civil liability. It remains relevant when parties use smart contracts or blockchain platforms.
For example, if a smart contract automatically transfers a payment after a specified event, a dispute may arise over whether the event occurred, whether the parties consented to the terms, whether an oracle supplied incorrect information, or whether the automated result conflicts with the governing contract.
The legal question is not simply whether the code executed. It is whether the resulting transaction is valid and enforceable under Moroccan law.
D. Law No. 09-08 on personal data protection
Distributed ledgers can create privacy difficulties because replicated records may be accessible to many network participants and difficult to erase or correct. Where a ledger processes identifiable personal information, Law No. 09-08 may apply.
A system should therefore consider data minimisation, lawful purpose, access controls, retention requirements, and the risks associated with placing personal data directly on an immutable ledger.
E. Cybersecurity and digital-asset regulation
Other legislation may apply depending on the purpose of the ledger, including rules on cybersecurity, financial services, payment systems, and digital assets. A blockchain used to preserve commercial records is legally different from a platform that transfers financial assets or operates a regulated payment service.
A project must be assessed by its actual function rather than simply being labelled “blockchain”.
4. Case law relevant to distributed legal ledgers
There is an important limitation in the available Moroccan authorities: I could not verify six separate Moroccan judgments that directly decide the legal status of blockchain records. The following decisions concern the closest established issue—how Moroccan courts assess electronic documents, authorship, integrity, and electronic communications. They are useful analogies, not blockchain-specific rulings.
Case 1: Moroccan Court of Cassation, Commercial Chamber — Decision No. 250/1, 6 June 2013
File No.: 2012/1/3/894.
Issue: Evidentiary value of commercial emails that acknowledged a commission debt without a formal electronic signature.
The Court of Cassation accepted the evidentiary significance of emails that identified their sender and acknowledged amounts payable. It reasoned that electronic communications can establish an obligation where the sender and the relevant expression of intent can be identified under the applicable rules.
Jurisprudence+1
Relevance to distributed ledgers: A ledger entry may support proof of a transaction, but the claimant still needs to establish who submitted or authorised it and what obligation the entry represents. The existence of an entry is not, on its own, proof that every participant consented to the transaction.
Case 2: Moroccan Court of Cassation, Commercial Chamber — Decision No. 396/3, 28 October 2020
Issue: Evidentiary use of an email explaining the allocation of a commercial payment.
The reported decision accepted reliance on electronic correspondence concerning the purpose of a payment. It illustrates that a court may assess electronic communications as evidence of commercial transactions rather than rejecting them merely because they are not conventional paper documents.
Law Gratis
Relevance to distributed ledgers: A distributed ledger can provide a transaction history and support reconciliation of payments. However, a court may still need the underlying contract, invoices, and other records to determine the legal purpose of a transaction.
Case 3: Moroccan Court of Cassation, Commercial Chamber — Decision No. 353/3, 3 October 2023
File No.: 1733/3/1/2022.
Issue: Evidentiary value of an electronic message used in a commercial dispute.
The Court of Cassation set aside an earlier decision that had rejected an email because it lacked a formal electronic signature. The dispute concerned an email relating to a commercial price and the application of the rules on electronic documents and commercial proof. The matter was remitted for reconsideration.
Jurisprudence+1
Relevance to distributed ledgers: The decision supports a functional approach to electronic evidence: the relevant questions include whether the author can be identified and the integrity of the document established. It does not mean that every blockchain record is automatically authentic or conclusive.
Case 4: Casablanca Commercial Court of Appeal — Decision No. 4008, 22 July 2024
File No.: 609/8202/2024.
Issue: Whether an unsigned email could be relied upon to establish a commercial price relevant to a commission claim.
Following remittal from the Court of Cassation, the Court of Appeal considered the evidentiary value of an electronic message under the applicable rules for electronic documents and commercial transactions. The reported decision accepted that the absence of a formal electronic signature did not by itself make the email inadmissible where the sender was identifiable and the integrity requirements were met.
Jurisprudence
Relevance to distributed ledgers: This is an important analogy for assessing blockchain evidence, particularly when a ledger entry is supported by reliable identity verification and a demonstrable record of integrity.
Relationship between Cases 3 and 4: These are stages in the same underlying dispute, not two wholly independent precedents. They should be cited as a connected procedural history.
Case 5: Moroccan Court of Appeal of Commerce, Casablanca — Decision No. 4072, 21 June 2016
Issue: An email communicating the termination of a commercial contract and the contractual consequences of that termination.
The decision is cited in later proceedings as an example of a court recognising that electronic correspondence can have evidentiary value under Article 417 of the Code of Obligations and Contracts, where the relevant requirements are met.
Jurisprudence
Relevance to distributed ledgers: A ledger may record the sending or registration of a termination notice, but whether the notice legally terminates a contract depends on the contract's terms, applicable formalities, and proof that the notice reached or was communicated to the appropriate party where required.
Case 6: Moroccan Court of Cassation, Land Chamber — Decision No. 15, 7 February 2023
Issue: A disputed signature on a document bearing an administrative legalisation.
The reported decision concerned the need to address a properly raised forgery challenge to a decisive document rather than treating administrative legalisation as conclusive proof of authenticity.
Law Gratis
Relevance to distributed ledgers: A blockchain can preserve a record of what was entered, but it cannot necessarily establish that the original information was true or that the person associated with a key genuinely authorised the transaction. Courts may still need to examine authorship, authority, and the underlying evidence.
These six authorities provide a relevant Moroccan evidentiary foundation, but they do not establish a special rule granting blockchain records automatic legal force. For a specific blockchain dispute, the legal effect must be determined under the applicable rules of evidence and the law governing the underlying transaction.
5. Comparative case law: blockchain and automated transactions
Because Moroccan courts have not yet developed a clearly established body of reported blockchain-specific judgments, foreign cases can help identify the questions Moroccan courts may need to address. These decisions are comparative authorities only and do not bind Moroccan courts.
Case 7: Quoine Pte Ltd v B2C2 Ltd — Singapore Court of Appeal, 2020
Issue: Automated cryptocurrency trades executed by trading algorithms.
The dispute arose from cryptocurrency trades executed by algorithms on an exchange. The Singapore Court of Appeal considered contract formation, automated transactions, and the legal doctrine of mistake.
Principle: Automated execution does not remove a transaction from ordinary legal analysis. The contractual arrangement and the circumstances in which the transaction occurred remain important.
Application in Morocco: A Moroccan court considering an automated ledger transaction would need to examine the parties' agreement, the operation of the software, the alleged mistake, and the applicable rules on consent and contractual liability.
Case 8: AA v Persons Unknown — England and Wales High Court, 2019
Issue: Cryptocurrency held through a blockchain and the availability of proprietary relief.
The court considered whether Bitcoin could be treated as property for the purposes of granting an interim proprietary injunction and related relief.
Principle: A digital asset may, in appropriate circumstances, be capable of legal protection as property even though it does not take the form of a traditional physical object.
Application in Morocco: The case illustrates the distinction between recording an asset on a ledger and establishing the legal rights associated with that asset. Whether a particular token or digital asset is legally recognised, transferable, or recoverable in Morocco depends on the applicable Moroccan law and the asset's legal characteristics.
6. Practical applications of distributed legal ledgers in Morocco
Grundbuch und Grundbuchauszug | Jetzt Wohnen
A. Land and property records
A permissioned ledger could maintain an auditable history of submitted property documents, registration applications, and authorised changes. It should not replace the legally required land-registration process or the authority of the competent registry.
Digital Contract Signing and Electronic Approval Workflow
B. Commercial contracts
A ledger can preserve contract versions, approvals, timestamps, and payment events. The system should retain evidence of consent and the applicable contractual terms.
אופטימיזציה של שרשרת אספקה - מדריך מעשי
C. Supply-chain transactions
Businesses can use a shared ledger to record delivery, inspection, payment, and transfer events. Disputes may still arise if the information entered into the system is false or if the parties disagree about the contractual meaning of an event.
The Essential Guide to Landlord Tenant Affidavits Ontario - The Online Notary
D. Notarial and official records
A ledger may help verify the history and integrity of documents. It does not independently confer official status on a document or replace notarisation, authentication, or registration where the law requires those procedures.
7. Civil liability and common disputes
A distributed legal ledger may create new disputes, but existing legal principles remain central.
| Dispute | Main legal question |
|---|---|
| False information entered into a ledger | Who supplied it, and who is responsible for the resulting loss? |
| Stolen or compromised private key | Was the transaction authorised by the person legally entitled to act? |
| Smart-contract execution error | Did the software execute the parties' agreement correctly? |
| Incorrect property entry | Does the entry have legal effect under the applicable registration rules? |
| Unauthorised disclosure of personal data | Was the data processed lawfully and securely? |
| Disagreement between ledger and signed contract | Which evidence establishes the parties' binding agreement? |
| Loss caused by a ledger operator | Was there a contractual breach, negligence, or another basis for liability? |
A. Smart contracts
A smart contract is software that automatically executes specified instructions when defined conditions are met. It may automate payments, delivery confirmation, or contractual milestones.
Under Moroccan law, the fact that code executed successfully does not necessarily establish that the outcome is legally enforceable. A court may need to determine whether valid consent existed, whether the code accurately represented the agreement, and whether any mandatory legal requirements were satisfied.
B. Immutability and correction
Distributed ledgers are often designed to make recorded entries difficult to alter. That feature can support traceability, but it can also complicate correction of inaccurate data.
A legally sound system should provide a way to record corrections, preserve the audit history, and comply with applicable requirements for personal-data processing. Sensitive personal information should generally not be placed directly on a permanent public ledger without a careful legal assessment.
C. Allocation of responsibility
A ledger network may involve software developers, validators, administrators, businesses, users, and external data providers. Liability should not be assigned merely because a party participated in the network.
The relevant questions include the party's actual role, contractual obligations, control over the system, conduct, and causal contribution to the loss.
8. Recommendations for a legally reliable ledger system
For deployment in Morocco, a distributed legal ledger should be designed around the following safeguards:
Legal validity: Identify the rules governing the underlying contract, property right, financial transaction, or official record.
Identity verification: Establish who may submit, approve, and sign entries.
Electronic signatures and trust services: Use appropriate services under the applicable Moroccan framework, including Law No. 43-20 and the relevant provisions of Law No. 53-05.
Integrity and auditability: Preserve transaction histories, timestamps, system logs, and evidence of changes or corrections.
Privacy and security: Assess Law No. 09-08, applicable cybersecurity requirements, access controls, and retention obligations.
Dispute mechanisms: Provide procedures for correcting erroneous records, investigating unauthorised transactions, and obtaining relevant evidence.
Human and judicial oversight: Avoid making the software's output the final determinant of a person's legal rights where a dispute requires legal assessment.
Clear contractual terms: Specify which records are authoritative, how errors are corrected, how responsibility is allocated, and which dispute-resolution procedures apply.
9. Conclusion
Civil law and distributed legal ledger systems in Morocco involve the interaction of contract law, electronic evidence, digital signatures, data protection, cybersecurity, and the statutory rules governing the underlying transaction.
Law No. 53-05 and Law No. 43-20 provide important elements of the legal framework for electronic documents and trust services. Moroccan case law on electronic correspondence also demonstrates that electronic records may have evidentiary value when authorship and integrity can be established.
The key distinction is that a distributed ledger can help prove that data was recorded, but it does not automatically prove that the data was true, that the person responsible was legally authorised, or that the transaction is valid. Those questions remain subject to the applicable law and judicial assessment.
The six Moroccan authorities discussed above concern electronic evidence and document authenticity, while the two comparative cases address automated transactions and digital assets more directly. They should be cited with that distinction in mind rather than presented as eight Moroccan blockchain precedents.

comments