We should have one concept for all types of persistent identifiers. So component mycore-urn should be set deprecated and in component module-pi we need a URN implementation.
The old URN API has methods to build and/or assign URNs. The idea was providing an API for URN generation (incl. checksum) without storing. So duplicate check should be part of URN assignment, not of URN generation (as it is atm).