-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: feat: complete client verification
- Loading branch information
Showing
14 changed files
with
948 additions
and
158 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,13 @@ | ||
use std::io::Result; | ||
fn main() -> Result<()> { | ||
prost_build::compile_protos( | ||
&[ | ||
"src/proto/connection.proto", | ||
"src/proto/client.proto", | ||
"src/proto/connection.proto", | ||
"src/proto/channel.proto", | ||
], | ||
&["src/"], | ||
)?; | ||
Ok(()) | ||
} |
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,19 @@ | ||
//! Functions for commitment paths. | ||
use alloc::string::String; | ||
|
||
pub fn connection_path(connection_id: &str) -> String { | ||
format!("connections/{connection_id}") | ||
} | ||
|
||
pub fn packet_commitment_path(port_id: &str, channel_id: &str, sequence: u64) -> String { | ||
format!("commitments/ports/{port_id}/channels/{channel_id}/sequences/{sequence}") | ||
} | ||
|
||
pub fn packet_acknowledgement_commitment_path( | ||
port_id: &str, | ||
channel_id: &str, | ||
sequence: u64, | ||
) -> String { | ||
format!("acks/ports/{port_id}/channels/{channel_id}/sequences/{sequence}") | ||
} |
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
Oops, something went wrong.