Update registerPrefix interface to use Name object rather than string