Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,466 changes: 1,067 additions & 399 deletions docs/Ixon.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/ix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ pub mod env;
pub mod graph;
pub mod ground;
pub mod ixon;
pub mod ixon_old; // Temporary: old ixon module for migration
pub mod mutual;
pub mod store;
pub mod strong_ordering;
3 changes: 3 additions & 0 deletions src/ix/address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ impl Address {
pub fn from_slice(input: &[u8]) -> Result<Self, TryFromSliceError> {
Ok(Address { hash: Hash::from_slice(input)? })
}
pub fn from_blake3_hash(hash: Hash) -> Self {
Address { hash }
}
pub fn hash(input: &[u8]) -> Self {
Address { hash: blake3::hash(input) }
}
Expand Down
Loading
Loading