Skip to content

Commit

Permalink
Avoid passing secret details of recipient in transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
sohkai committed Feb 10, 2017
1 parent b6b019b commit 6e2748c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ PAYLOAD:
},
"to": {
"verifyingKey": "<base58 string>",
"signingKey": "<base58 string>"
"signingKey": null
}
}
Expand All @@ -336,6 +336,10 @@ RETURNS:
}
```

Note that the `to` field in the payload may avoid specifying the new holder's
private details (i.e. `signingKey`), but should still provide the keys needed to
conform to the [user model](#create-users).

To check if your POST was successful, follow the steps in [registering a
manifestation](#was-my-post-to-manifestations-successful) and use the returned
Right's data instead.
5 changes: 4 additions & 1 deletion tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,10 @@ def test_transfer_right(client, alice, bob,
'action': 'loan',
},
'currentHolder': alice,
'to': bob,
'to': {
'verifyingKey': bob['verifyingKey'],
'signingKey': None,
}
}

expected = {
Expand Down

0 comments on commit 6e2748c

Please sign in to comment.