注册协议实现

Signed-off-by: hpfs0 <ydw_good@126.com>