Conversion helper for genesis_hash
to network type
#212
Labels
[Type] Task
An additional feature or improvement.
genesis_hash
to network type
#212
Task description
Prerequisite:
#209
Currently, the
get_consensus_info()
function returns the genesis hash. For ZK proof verification we need to convert the genesis hash into the typeNetwork::Testnet/Network::Mainnet
.The manual conversion is awkward:
https://github.com/Concordium/concordium-dapp-examples/blob/e34d1a55e92bb912695147f9561afe4af6af2620/compliant-reward-distribution/indexer-and-server/src/bin/server.rs#L142C5-L153C1
Suggestion to add a
conversion
helper function:The text was updated successfully, but these errors were encountered: