update priv2pub post, add code