Implement Sanav protocol (fix #421)