[][src]Function forge_did::get_did_by_pk_hash

pub fn get_did_by_pk_hash(
    pk_hash: &[u8],
    did_type: &Option<DidType>
) -> Result<String>

get did address from pk hash did_type None will use default value: DidType { role_type: Some(RoleType::Account), key_type: Some(KeyType::Ed25519), hash_type: Some(HashType::Sha3), }