pub fn from_switch_commit(switch_commit: Commitment) -> SwitchCommitHash {
		let switch_commit_hash = blake2b(SWITCH_COMMIT_HASH_SIZE, &[], &switch_commit.0);
		let switch_commit_hash = switch_commit_hash.as_bytes();
		let mut h = [0; SWITCH_COMMIT_HASH_SIZE];
		for i in 0..SWITCH_COMMIT_HASH_SIZE {
			h[i] = switch_commit_hash[i];
		}
		SwitchCommitHash { hash: h }
	}
/// Builds a switch commitment hash from a switch commit using blake2
Builds a switch commitment hash from a switch commit using blake2
Builds a switch commitment hash from a switch commit using blake2
pub fn from_switch_commit(switch_commit: Commitment) -> SwitchCommitHash {
		let switch_commit_hash = blake2b(SWITCH_COMMIT_HASH_SIZE, &[], &switch_commit.0);
		let switch_commit_hash = switch_commit_hash.as_bytes();
		let mut h = [0; SWITCH_COMMIT_HASH_SIZE];
		for i in 0..SWITCH_COMMIT_HASH_SIZE {
			h[i] = switch_commit_hash[i];
		}
		SwitchCommitHash { hash: h }
	}
pub fn from_switch_commit ( switch_commit : Commitment ) -> SwitchCommitHash { let switch_commit_hash = blake2b ( SWITCH_COMMIT_HASH_SIZE , & [ ] , & switch_commit . 0 ) ; let switch_commit_hash = switch_commit_hash . as_bytes ( ) ; let mut h = [ 0 ; SWITCH_COMMIT_HASH_SIZE ] ; for i in 0 .. SWITCH_COMMIT_HASH_SIZE { h [ i ] = switch_commit_hash [ i ] ; } SwitchCommitHash { hash : h } }
Builds a switch commitment hash from a switch commit using blake2
Builds a switch commitment hash from a switch commit using blake2
switch_commit
Commitment