Commits

William Pitcock committed d996cf9

Add non-documentation.

Comments (0)

Files changed (1)

 This is the RPC definition for Edia and some code for it.  It is meant to be used as a git submodule,
 and is shared by a few tortoiselabs products for RPC calling.
 
+## Call syntax
+
+```
+{
+	"signature": "...",
+	"method": "...",
+	"params": {
+		"key": "value",
+		"key2": "value2"
+	}
+}
+```
+
+### Signature generation
+
+Compute the PBKDF2 hash using 1000 iterations of a shared secret.
+
+Take the JSON structure without the signature and hash the encoded form of it, using SHA256-HMAC.
+
+The signature is then SHA256-HMAC(KEY + STRUCTUREHASH).