crypto/shachain: add design document.