-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve book per audit report (#491)
* improve book per audit report * remove stale sentence * fix a typo * Update book/src/tutorial/signing.md Co-authored-by: Deirdre Connolly <[email protected]> * Update book/src/tutorial/signing.md --------- Co-authored-by: Deirdre Connolly <[email protected]>
- Loading branch information
1 parent
386de4d
commit d439fdc
Showing
11 changed files
with
299 additions
and
226 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Importing and General Information | ||
|
||
## Including `frost-ristretto255` | ||
|
||
Add to your `Cargo.toml` file: | ||
|
||
``` | ||
[dependencies] | ||
frost-ristretto255 = "0.6.0" | ||
``` | ||
|
||
## Handling errors | ||
|
||
Most crate functions mentioned below return `Result`s with | ||
[`Error`](https://docs.rs/frost-ristretto255/latest/frost_ristretto255/type.Error.html)s. | ||
All errors should be considered fatal and should lead to aborting the key | ||
generation or signing procedure. | ||
|
||
## Serializing structures | ||
|
||
FROST is a distributed protocol and thus it requires sending messages between | ||
participants. While the ZF FROST library does not handle communication, it can | ||
help with serialization by activating the `serde` feature. When it is enabled, | ||
you can use [serde](https://serde.rs/) to serialize any structure that needs | ||
to be transmitted. Import example: | ||
|
||
``` | ||
[dependencies] | ||
frost-ristretto255 = { version = "0.6.0", features = ["serde"] } | ||
``` | ||
|
||
Note that serde usage is optional. Applications can use different encodings, and | ||
to support that, all structures that need to be transmitted have public getters | ||
and `new()` methods allowing the application to encode and decode them as it | ||
wishes. (Note that fields like `Scalar` and `Element` do have standard byte | ||
string encodings; the application can encode those byte strings as it wishes, | ||
as well the structure themselves and things like maps and lists.) |
Oops, something went wrong.