Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
osuketh committed Jun 28, 2019
1 parent c2ab257 commit 11401a3
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 17 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Address (SS58): 5H8gW16RYqv9pqCVPv8GrxMm3byTiCfe16aA16uXwENsbytA

- Send transaction for confidential payment
```
zeroc tx send -a <AMOUNT> -s <Sender's SEED> -to <Recipient's PUBLIC KEY>
zeroc tx send -a <AMOUNT> -s <Sender's SEED> -t <Recipient's PUBLIC KEY>
```

In the case, Alice sends 10 coins to Bob...
Expand Down
8 changes: 0 additions & 8 deletions runtime/src/conf_transfer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -418,13 +418,6 @@ mod tests {
(PkdAddress::from_encryption_key(&enc_key), Ciphertext::from_ciphertext(&enc_alice_bal))
}

// fn alice_pending_transfer_init() -> (PkdAddress, Ciphertext) {
// let (_, enc_key) = get_alice_seed_ek();
// let zero = elgamal::Ciphertext::zero();

// (PkdAddress::from_encryption_key(&enc_key), Ciphertext::from_ciphertext(&zero))
// }

fn alice_epoch_init() -> (PkdAddress, u64) {
let (_, enc_key) = get_alice_seed_ek();

Expand Down Expand Up @@ -454,7 +447,6 @@ mod tests {
let mut t = system::GenesisConfig::<Test>::default().build_storage().unwrap().0;
t.extend(GenesisConfig::<Test>{
encrypted_balance: vec![alice_balance_init()],
// pending_transfer: vec![alice_pending_transfer_init()],
last_rollover: vec![alice_epoch_init()],
epoch_length: 10,
transaction_base_fee: 1,
Expand Down
8 changes: 0 additions & 8 deletions src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ fn testnet_genesis(initial_authorities: Vec<AuthorityId>, endowed_accounts: Vec<
}),
conf_transfer: Some(ConfTransferConfig {
encrypted_balance: vec![alice_balance_init()],
// pending_transfer: vec![alice_pending_transfer_init()],
last_rollover: vec![alice_epoch_init()],
epoch_length: 1,
transaction_base_fee: 1,
Expand Down Expand Up @@ -171,13 +170,6 @@ fn alice_balance_init() -> (PkdAddress, Ciphertext) {
(PkdAddress::from_encryption_key(&enc_key), Ciphertext::from_ciphertext(&enc_alice_bal))
}

// fn alice_pending_transfer_init() -> (PkdAddress, Ciphertext) {
// let (_, enc_key) = get_alice_seed_ek();
// let zero = elgamal::Ciphertext::zero();

// (PkdAddress::from_encryption_key(&enc_key), Ciphertext::from_ciphertext(&zero))
// }

fn alice_epoch_init() -> (PkdAddress, u64) {
let (_, enc_key) = get_alice_seed_ek();

Expand Down
1 change: 1 addition & 0 deletions zeroc/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ pub struct BalanceQuery {
pub pending_transfer_str: String,
}

// Temporary code.
impl BalanceQuery {
/// Get encrypted and decrypted balance for the decryption key
pub fn get_balance_from_decryption_key(mut decryption_key: &[u8], api: Api) -> Self {
Expand Down

0 comments on commit 11401a3

Please sign in to comment.