Skip to content

methods for AdaptiveTGP not found #9

@Ben-PH

Description

@Ben-PH

Pending resolution of issue #6 , I've cloned in the referred repository so the pathing makes sense on my machine.

cargo check seems to work, except that I get these errors:

error[E0599]: no function or associated item named `symmetric_with_commitment` found for struct `AdaptiveTGP` in the current scope
   --> crates/citadel-protocols/src/coordinator.rs:292:26
    |
292 |             AdaptiveTGP::symmetric_with_commitment(
    |                          ^^^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `AdaptiveTGP`
    |
note: if you're trying to build a new `AdaptiveTGP` consider using one of the following associated functions:
      AdaptiveTGP::new
      AdaptiveTGP::with_commitment_message
   --> /home/ben/riff/projects/two-generals/rust-adaptive-flooding/src/protocol.rs:41:5
    |
 41 | /     pub fn new(
 42 | |         party: Party,
 43 | |         keypair: KeyPair,
 44 | |         counterparty_public_key: two_generals::crypto::PublicKey,
 45 | |         min_rate: u64,
 46 | |         max_rate: u64,
 47 | |     ) -> Self {
    | |_____________^
...
 67 | /     pub fn with_commitment_message(
 68 | |         party: Party,
 69 | |         keypair: KeyPair,
 70 | |         counterparty_public_key: two_generals::crypto::PublicKey,
...   |
 73 | |         max_rate: u64,
 74 | |     ) -> Self {
    | |_____________^

error[E0599]: no function or associated item named `symmetric` found for struct `AdaptiveTGP` in the current scope
   --> crates/citadel-protocols/src/coordinator.rs:300:26
    |
300 |             AdaptiveTGP::symmetric(
    |                          ^^^^^^^^^ function or associated item not found in `AdaptiveTGP`
    |
note: if you're trying to build a new `AdaptiveTGP` consider using one of the following associated functions:
      AdaptiveTGP::new
      AdaptiveTGP::with_commitment_message
   --> /home/ben/riff/projects/two-generals/rust-adaptive-flooding/src/protocol.rs:41:5
    |
 41 | /     pub fn new(
 42 | |         party: Party,
 43 | |         keypair: KeyPair,
 44 | |         counterparty_public_key: two_generals::crypto::PublicKey,
 45 | |         min_rate: u64,
 46 | |         max_rate: u64,
 47 | |     ) -> Self {
    | |_____________^
...
 67 | /     pub fn with_commitment_message(
 68 | |         party: Party,
 69 | |         keypair: KeyPair,
 70 | |         counterparty_public_key: two_generals::crypto::PublicKey,
...   |
 73 | |         max_rate: u64,
 74 | |     ) -> Self {
    | |_____________^

I think this might be relevant:https://github.com/rifflabs/citadel/blob/707c4ddd0b5c804e82abd1e37da938603988440c/crates/citadel-protocols/src/coordinator.rs#L222-L227

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions