Skip to content

Commit

Permalink
Use options bag parameters rather than MsgParams type (#204)
Browse files Browse the repository at this point in the history
The signing and encryptuon functions all accepted a `MsgParams`
parameter that included just a single property (`data`, the data to be
signed). This pointless wrapper object around this single parameter
complicated the type signatures of these functions.

Instead, these functions now accept all parameters as one "options bag"
parameter, and the `MsgParams` type has been removed. This makes the
functions easier to use, as now it's not possible to enter the
parameters in the wrong order.

The related `SignedMsgParams` type has also been replaced in the same
manner, for the same reasons.
  • Loading branch information
Gudahtt authored Sep 13, 2021
1 parent 89c9f91 commit c442c50
Show file tree
Hide file tree
Showing 2 changed files with 1,000 additions and 1,115 deletions.
Loading

0 comments on commit c442c50

Please sign in to comment.