diff --git a/Cargo.lock b/Cargo.lock
index 1d44e501bbc512aa87f34fe71a9eb8b4430a323b..d8c2d27854da9464e7632980cde3e4e3c63b401b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -90,6 +90,7 @@ dependencies = [
  "base58 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
  "base64 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
  "rust-crypto 0.2.36 (registry+https://github.com/rust-lang/crates.io-index)",
+ "serde 1.0.37 (registry+https://github.com/rust-lang/crates.io-index)",
 ]
 
 [[package]]
@@ -103,6 +104,7 @@ dependencies = [
  "linked-hash-map 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
  "regex 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)",
  "rust-crypto 0.2.36 (registry+https://github.com/rust-lang/crates.io-index)",
+ "serde 1.0.37 (registry+https://github.com/rust-lang/crates.io-index)",
 ]
 
 [[package]]
diff --git a/crypto/Cargo.toml b/crypto/Cargo.toml
index eb02b40032768fac856cc3ecc744fe9f4e223be6..3cb39c12d4eb7e7fcfc80f160c6285ea26559ce8 100644
--- a/crypto/Cargo.toml
+++ b/crypto/Cargo.toml
@@ -15,6 +15,7 @@ path = "lib.rs"
 base58 = "0.1.0"
 base64 = "0.8.0"
 rust-crypto = "0.2.36"
+serde = "1.0.24"
 
 [features]
 # Treat warnings as a build error.
diff --git a/documents/Cargo.toml b/documents/Cargo.toml
index de28ba5ffb6f71c5b8f200a0b9aed21e7b33a34a..cc0e5620497b6697d20bf9e23ebfbea93510f16a 100644
--- a/documents/Cargo.toml
+++ b/documents/Cargo.toml
@@ -12,13 +12,14 @@ license = "AGPL-3.0"
 path = "lib.rs"
 
 [dependencies]
-rust-crypto = "0.2.36"
-linked-hash-map = "0.5.0"
 base58 = "0.1.0"
 base64 = "0.8.0"
+duniter-crypto = { path = "../crypto" }
 lazy_static = "1.0.0"
+linked-hash-map = "0.5.0"
 regex = "0.2"
-duniter-crypto = { path = "../crypto" }
+rust-crypto = "0.2.36"
+serde = "1.0.24"
 
 [features]
 # Treat warnings as a build error.