Function rusk_abi::contract_to_scalar
source · [−]pub fn contract_to_scalar(contract_id: &ContractId) -> BlsScalar
Expand description
Converts a ContractId
to a BlsScalar
This cannot fail since the contract id should be generated always using
rusk_abi::gen_contract_id
that ensures the bytes are inside the BLS field.