Skip to content

Commit

Permalink
respond to some feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
emostov committed May 7, 2024
1 parent e786ac0 commit 4428dec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/qos_client/RESHARD_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ qos_client boot-reshard \

### 3 - Get attestation doc (Old Share Holder)

Get the attestation doc from the enclave. The attestation doc contains a refference to the reshard input and the ephemeral key which shares will be encrypted.
Get the attestation doc from the enclave. The attestation doc contains a reference to the reshard input and the ephemeral key which shares will be encrypted.

```sh
qos_client get-reshard-attestation-doc \
Expand All @@ -62,7 +62,7 @@ For each quorum key being resharded, the user will need a separate directory wit
- my_alias.share
```

Note that the logic looks at the extension of the file to determine if its a share or the quorum key.
Note that the logic looks at the extension of the file to determine if it's a share or the quorum key.

```sh
qos_client reshard-re-encrypt-share \
Expand All @@ -84,7 +84,7 @@ Post the re-encrypted shares from last step in order to reconstruct the quorum k

```sh
qos_client reshard-post-share
--provision-input-path <write: path to the file to write this users provision input> \
--provision-input-path <write: path to the file to write this users ReshardProvisionInput> \
--host-port 3001 \
--host-ip localhost
```
Expand Down
6 changes: 3 additions & 3 deletions src/qos_core/src/protocol/services/reshard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ pub struct ReshardProvisionInput {
pub struct ReshardInput {
/// List of quorum public keys
pub quorum_keys: Vec<Vec<u8>>,
/// The set and threshold to shard the key.
/// The share set and threshold to shard the quorum keys to.
pub new_share_set: ShareSet,
/// The set the key is currently sharded too.
/// The share set the quorum keys are currently sharded too.
pub old_share_set: ShareSet,
/// The expected configuration of the enclave. Useful to verify the
/// attestation document against. We also want those posting shares to
Expand Down Expand Up @@ -289,7 +289,7 @@ pub(in crate::protocol) fn reshard_provision(
reshard_input.new_share_set.threshold as usize,
);

// Now, lets create the new shards
// Now, let's create the new shards
let member_outputs =
zip(shares, reshard_input.new_share_set.members.iter().cloned())
.map(|(share, share_set_member)| -> Result<GenesisMemberOutput, ProtocolError> {
Expand Down

0 comments on commit 4428dec

Please sign in to comment.